net/ixgbe: detect failed VF MTU set
authorAlvin Zhang <alvinx.zhang@intel.com>
Wed, 2 Dec 2020 09:48:06 +0000 (17:48 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commitc77866a1690416c279c4153d0416c15e9a26547d
tree9f5cfa3993123234f3e1b81569c4b2ce37ce1f15
parentac241c74ac75b2670788635b1a8e6809afae0827
net/ixgbe: detect failed VF MTU set

If a VF request to set a invalid maximum packet length value,
The PF kernel driver may disable its reception.

This patch add codes to output information and return the error status.

Fixes: 12cd0cccc3db ("ixgbevf: allow to set MTU")
Cc: stable@dpdk.org
Signed-off-by: Alvin Zhang <alvinx.zhang@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_rxtx.c