]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: add double of VLAN header when computing the max MTU
authorJason Xing <kernelxing@tencent.com>
Thu, 9 Feb 2023 02:41:28 +0000 (10:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:54 +0000 (12:59 +0100)
commit0d4b44c5ec073d611103fa2b5ce2d381ceaf4ef1
treeb2cfde4ab03a9bd96551451e4f878bf88c469271
parentb60de26f2c5be3712c33c49d9fd6622f2d28f49f
ixgbe: add double of VLAN header when computing the max MTU

commit c55688698c8cea88dbae42f506eefb5d6150010c upstream.

Include the second VLAN HLEN into account when computing the maximum
MTU size as other drivers do.

Fixes: e6d3c7b58f9d ("ixgbe: Prevent unsupported configurations with XDP")
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c