]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: don't clear UDP tunnel ports when RXCSUM is disabled
authorJakub Kicinski <kuba@kernel.org>
Fri, 10 Jul 2020 00:42:50 +0000 (17:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jul 2020 20:54:00 +0000 (13:54 -0700)
commitfac66d631d5a9dfe8b6654116d0f321d837c5262
tree60e6ddec93a977851723e742d642447c9d13cfef
parentdd55ffcf7277529a01445a227ac0d8bf478b20de
ixgbe: don't clear UDP tunnel ports when RXCSUM is disabled

It appears the clearing of UDP tunnel ports when RXCSUM
is disabled is unnecessary. Driver will not pay attention
to checksum bits if RXCSUM is not set, so we can let
the hardware parse the packets.

Note that the UDP tunnel port NDO handlers don't pay attention
to the state of RXCSUM, so the ports could had been re-programmed,
anyway.

This cleanup simplifies later conversion patch.

v2:
 - break this out of the following patch.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c