]> 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:50:41 +0000 (12:50 +0100)
commitd670851bfe0003484985d268fb013d6616a69406
tree62fe06a6c9d30bcc6f876945ca788581f45d119c
parentc8b33b037c85e2e148e61d56a7694ad518c54831
ixgbe: add double of VLAN header when computing the max MTU

commit 0967bf837784a11c65d66060623a74e65211af0b upstream.

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

Fixes: 5166c2a29549 ("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