net/iavf: set min and max MTU for VF
authorRobin Zhang <robinx.zhang@intel.com>
Sun, 27 Sep 2020 07:26:20 +0000 (07:26 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Oct 2020 11:17:43 +0000 (13:17 +0200)
commit1541a9d6b07ac6c5b44f2f346223b24d25e1fc2f
tree90620b36a87b6af433770629268ad99a53a58400
parent56addb5a23139a46e2c7fd0c8e68f56230cd5a6c
net/iavf: set min and max MTU for VF

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

Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ethdev.c