net/ixgbevf: remove MTU setting limitation
authorDavid Harton <dharton@cisco.com>
Wed, 3 Apr 2019 01:18:33 +0000 (21:18 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commitf9409d6c28bf30c7b1b037c34b3868d09e57dc23
treef6bd198455b9ca272e93be793d27680814a0e957
parent9481b0902efe345de0548f794491de434618391a
net/ixgbevf: 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: David Harton <dharton@cisco.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c