Skip to contentSkip to conversation

make a couple eth_dev_ops const

PATCH In review Stephen Hemminger 3 participants 9 messages Jan 12, 2017 – Jan 18, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

cover make a couple eth_dev_ops const

Really trivial patches.

I also consider this a litmus test of how long it takes DPDK project to merge trivial maintaince patches.

Stephen Hemminger (2):
bnx: make eth_dev_ops const
ena: make eth_dev_ops const

 drivers/net/bnxt/bnxt_ethdev.c | 2 +-
 drivers/net/ena/ena_ethdev.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw
Quoted 1 line · Stephen Hemminger

Really trivial patches.

Patches are not in patchwork, and not in the mail list.

Quoted 10 lines

I also consider this a litmus test of how long it takes DPDK project to merge trivial maintaince patches.

Stephen Hemminger (2):
bnx: make eth_dev_ops const
ena: make eth_dev_ops const

 drivers/net/bnxt/bnxt_ethdev.c | 2 +-
 drivers/net/ena/ena_ethdev.c   | 2 +-

Right, ena and bnxt are missing const for eth_dev_ops. Do you want me send patches?

Quoted 2 lines
 2 files changed, 2 insertions(+), 2 deletions(-)
#2 lore raw

2017-01-12 21:54, Ferruh Yigit:

Quoted 7 lines · Stephen Hemminger
Quoted 1 line

Really trivial patches.

Patches are not in patchwork, and not in the mail list.

Quoted 2 lines

I also consider this a litmus test of how long it takes DPDK project to merge trivial maintaince patches.

This is a nice example of why patches are not merged timely, sometimes they are not received at all :)

In order to reduce the time needed to merge, could you please run devtools/check-git-log.sh ?

#3 lore raw

PATCH 1/1 net/bnxt: make eth dev ops struct const

In reply to Stephen Hemminger
---
 drivers/net/bnxt/bnxt_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/bnxt/bnxt_ethdev.c +1 -1
index 1252a36..501c97d 100644
@@ -1002,7 +1002,7 @@ static int bnxt_flow_ctrl_set_op(struct rte_eth_dev *dev,
  * Initialization
  */
 
-static struct eth_dev_ops bnxt_dev_ops = {
+static const struct eth_dev_ops bnxt_dev_ops = {
 	.dev_infos_get = bnxt_dev_info_get_op,
 	.dev_close = bnxt_dev_close_op,
 	.dev_configure = bnxt_dev_configure_op,
Signature · 1 line
2.9.3
#4 lore raw

PATCH 1/1 net/ena: make eth dev ops struct const

---
 drivers/net/ena/ena_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ena/ena_ethdev.c +1 -1
index b9d0e8a..8497cd7 100644
@@ -227,7 +227,7 @@ static int ena_rss_reta_query(struct rte_eth_dev *dev,
 			      uint16_t reta_size);
 static int ena_get_sset_count(struct rte_eth_dev *dev, int sset);
 
-static struct eth_dev_ops ena_dev_ops = {
+static const struct eth_dev_ops ena_dev_ops = {
 	.dev_configure        = ena_dev_configure,
 	.dev_infos_get        = ena_infos_get,
 	.rx_queue_setup       = ena_rx_queue_setup,
Signature · 1 line
2.9.3
#7 lore raw

Re: [PATCH] net/bnxt: make eth dev ops struct const

Quoted 9 lines · On Tue, 17 Jan 2017 21:57:33 +0100 Thomas Monjalon <[email protected]>…

2017-01-16 13:44, Ferruh Yigit:

Quoted 5 lines · Ferruh Yigit
Quoted 2 lines

Both applied to dpdk-next-net/master, thanks.

I must admit it is the force of Stephen:
he sends just a cover letter and do not reply, so you do the patch for him :)

Actually I did do the patches but git send-email ate them :-)