net/igc: remove MTU setting limitation
authorDapeng Yu <dapengx.yu@intel.com>
Fri, 19 Feb 2021 10:01:07 +0000 (18:01 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Mar 2021 08:10:51 +0000 (09:10 +0100)
commit5db232fa5aed20f7b1b2eeed19c17a97259c1261
tree4122625e9dd8905f128791ee47ad8a1c3a99db70
parentda996000e8ea513ee47e3e01f0f4e709e66cec07
net/igc: 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.

Fixes: a5aeb2b9e225 ("net/igc: support Rx and Tx")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/igc/igc_ethdev.c