net/txgbe: fix MTU limitation for VF
authorJiawen Wu <jiawenwu@trustnetic.com>
Thu, 29 Apr 2021 10:33:32 +0000 (18:33 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 29 Apr 2021 15:01:06 +0000 (17:01 +0200)
commit89d2a1061df5b874a41739b146693b0d542aebd4
treeb75294249410907c35d7c405521e26c1388064f3
parent9421152d7dcf951aae30c1b22c0c9c63875ff90a
net/txgbe: fix MTU limitation for VF

When requested MTU is bigger than mbuf size and scattered Rx is not
enabled, setting MTU fails for VF.

But scattered Rx can be enabled in next port start if required, so
enabling setting MTU bigger than mbuf size if device is stopped
independent from scattered Rx configuration.

Fixes: a2beaa4a769e ("net/txgbe: support VF MTU update")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/txgbe_ethdev_vf.c