Skip to contentSkip to conversation

net/e1000: Support mtu set for igbvf.

PATCH Superseded Ian Stokes 1 participant 2 messages Jun 29, 2018 Network drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ian Stokes

author
#0 lore raw

PATCH 1/1 net/e1000: Support mtu set for igbvf.

This patch enables setting the MTU of an igbvf device by re-using the eth_igb_mtu_set() in igbvf_eth_dev_ops.

---
 drivers/net/e1000/igb_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/e1000/igb_ethdev.c +1 -0
index edc7be3..1a0f543 100644
@@ -442,6 +442,7 @@ static const struct eth_dev_ops igbvf_eth_dev_ops = {
 	.txq_info_get         = igb_txq_info_get,
 	.mac_addr_set         = igbvf_default_mac_addr_set,
 	.get_reg              = igbvf_get_regs,
+        .mtu_set              = eth_igb_mtu_set,
 };
 
 /* store statistics names and its offset in stats structure */
Signature · 1 line
2.7.5
author
#1 lore raw
Quoted 16 lines · Ian Stokes

This patch enables setting the MTU of an igbvf device by re-using the eth_igb_mtu_set() in igbvf_eth_dev_ops.

---
  drivers/net/e1000/igb_ethdev.c | 1 +
  1 file changed, 1 insertion(+)
drivers/net/e1000/igb_ethdev.c +0 -0
index edc7be3..1a0f543 100644

drivers/net/e1000/igb_ethdev.c static const struct eth_dev_ops igbvf_eth_dev_ops = { · line 448

Quoted 7 lines
drivers/net/e1000/igb_ethdev.c +1 -0
@@ -442,6 +442,7 @@ static const struct eth_dev_ops igbvf_eth_dev_ops = {
  	.txq_info_get         = igb_txq_info_get,
  	.mac_addr_set         = igbvf_default_mac_addr_set,
  	.get_reg              = igbvf_get_regs,
+        .mtu_set              = eth_igb_mtu_set,
  };
 
  /* store statistics names and its offset in stats structure */

Just spotted that this uses spaces instead of tabs, please ignore and I will send a v2 with the correction.

Thanks
Ian