net/e1000: remove MTU setting limitation
authorDapeng Yu <dapengx.yu@intel.com>
Fri, 19 Feb 2021 10:03:23 +0000 (18:03 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 5 Mar 2021 08:11:04 +0000 (09:11 +0100)
commit0984d196be2a92eb6e2e0b926fdb4a06a1d7d823
tree0f24292536d82a263784d315a0a7d01d7fa45430
parent5db232fa5aed20f7b1b2eeed19c17a97259c1261
net/e1000: 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: 59d0ecdbf0e1 ("ethdev: MTU accessors")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Jeff Guo <jia.guo@intel.com>
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/igb_ethdev.c