net/i40e: set min and max MTU for VF
authorIan Stokes <ian.stokes@intel.com>
Fri, 29 Mar 2019 17:52:15 +0000 (17:52 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Mar 2019 17:59:10 +0000 (18:59 +0100)
commit92645b2ffd842a14c461376c1dca199121396cc5
tree268707b83a9e5c3326a82a0f70e46bd8810f2283
parentc00deca2db34daa2d6ae335236507780db01f076
net/i40e: set min and max MTU for VF

This commit sets the min and max supported MTU values for i40e VF
devices via the i40evf_dev_info_get() function. Min MTU supported
is set to ETHER_MIN_MTU and max MTU is calculated as the max packet
length supported minus the transport overhead.

Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c