net/e1000: Support mtu set for igbvf.

Message ID 1530279409-2960-1-git-send-email-ian.stokes@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Qi Zhang
Headers
Series net/e1000: Support mtu set for igbvf. |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Ian Stokes June 29, 2018, 1:36 p.m. UTC
  This patch enables setting the MTU of an igbvf device by re-using the
eth_igb_mtu_set() in igbvf_eth_dev_ops.

Cc: stable@dpdk.org

Signed-off-by: Ian Stokes <ian.stokes@intel.com>
---
 drivers/net/e1000/igb_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Ian Stokes June 29, 2018, 1:42 p.m. UTC | #1
On 6/29/2018 2:36 PM, Ian Stokes wrote:
> This patch enables setting the MTU of an igbvf device by re-using the
> eth_igb_mtu_set() in igbvf_eth_dev_ops.
> 
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
> ---
>   drivers/net/e1000/igb_ethdev.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
> index edc7be3..1a0f543 100644
> --- a/drivers/net/e1000/igb_ethdev.c
> +++ b/drivers/net/e1000/igb_ethdev.c
> @@ -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
  

Patch

diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
index edc7be3..1a0f543 100644
--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -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 */