]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ibmveth: Remove condition to recompute TCP header checksum.
authorDavid Wilder <dwilder@us.ibm.com>
Tue, 26 Sep 2023 21:42:51 +0000 (16:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:59:07 +0000 (21:59 +0200)
commit0c9cf5e8807fb8668432386efa8387fc7bc8ffe3
treea8e0b0698bfb7112b7e5862f4cd170f59bba48f8
parent5a899e2ce8482aae18ded86bbdf63e3f130ad12d
ibmveth: Remove condition to recompute TCP header checksum.

[ Upstream commit 51e7a66666e0ca9642c59464ef8359f0ac604d41 ]

In some OVS environments the TCP pseudo header checksum may need to be
recomputed. Currently this is only done when the interface instance is
configured for "Trunk Mode". We found the issue also occurs in some
Kubernetes environments, these environments do not use "Trunk Mode",
therefor the condition is removed.

Performance tests with this change show only a fractional decrease in
throughput (< 0.2%).

Fixes: 7525de2516fb ("ibmveth: Set CHECKSUM_PARTIAL if NULL TCP CSUM.")
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Reviewed-by: Nick Child <nnac123@linux.ibm.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ibmveth.c