]> git.itanic.dy.fi Git - linux-stable/commit
i40e: add double of VLAN header when computing the max MTU
authorJason Xing <kernelxing@tencent.com>
Wed, 8 Feb 2023 02:43:33 +0000 (10:43 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 14 Feb 2023 18:07:27 +0000 (10:07 -0800)
commitce45ffb815e8e238f05de1630be3969b6bb15e4e
treee2e2fff3a1cb3e1c42bf0abc28968019e44cb31a
parentf9cd6a4418bac6a046ee78382423b1ae7565fb24
i40e: add double of VLAN header when computing the max MTU

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

Fixes: 0c8493d90b6b ("i40e: add XDP support for pass and drop actions")
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>
drivers/net/ethernet/intel/i40e/i40e_main.c