net/ice: set min and max MTU
authorQi Zhang <qi.z.zhang@intel.com>
Tue, 7 May 2019 01:53:46 +0000 (09:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 May 2019 16:40:06 +0000 (18:40 +0200)
commitc352338e44b24bc1aa3a1a1b165ac3f4baeef37e
tree4e6bc371d7bddd6670feb833f733bdbd6f79aa05
parentb2319e4c015c1f216d23b1bbec0dfbd644e433f3
net/ice: set min and max MTU

This commit sets the min and max supported MTU values for ice devices
via the ice_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: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/ice_ethdev.c