[dpdk-dev] [PATCH] net/bnxt: make eth dev ops struct const
Ferruh Yigit
ferruh.yigit at intel.com
Mon Jan 16 14:27:38 CET 2017
Reported-by: Stephen Hemminger <sthemmin at microsoft.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
---
drivers/net/bnxt/bnxt_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 1252a36..501c97d 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -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,
--
2.9.3
More information about the dev
mailing list