net/ixgbe: remove MTU setting limitation
authorBeilei Xing <beilei.xing@intel.com>
Thu, 6 Jul 2017 03:36:00 +0000 (11:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commitc009c6b142107a960b58ed2cc8aa81b55b452c66
tree6eec07d0095623f34cb28cba8dcac13994d50899
parent4c42498d916d57fcc38b9cb42b5a5cd44447b454
net/ixgbe: remove MTU setting limitation

Currently, if requested MTU is bigger than mbuf size and scattered
receive is not enabled, setting MTU to that value fails.

This patch allows setting this special MTU when device is stopped,
because scattered_rx will be re-configured during next port start
and driver may enable scattered receive according new MTU value.

After this patch, driver may select different receive function
automatically after MTU set, according MTU values selected.

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c