]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mana: Fix the tso_bytes calculation
authorHaiyang Zhang <haiyangz@microsoft.com>
Fri, 29 Sep 2023 20:42:26 +0000 (13:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:03:03 +0000 (22:03 +0200)
commit5a98b9dd99813aba250b9d8ddcdb15c5e14ffb22
treea8075bf161aa0a6882a638e384706f5851c1e6fe
parentd0a4acf3d4e6018048f38ca69aa00605c9757d58
net: mana: Fix the tso_bytes calculation

commit 7a54de92657455210d0ca71d4176b553952c871a upstream.

sizeof(struct hop_jumbo_hdr) is not part of tso_bytes, so remove
the subtraction from header size.

Cc: stable@vger.kernel.org
Fixes: bd7fc6e1957c ("net: mana: Add new MANA VF performance counters for easier troubleshooting")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: a43e8e9ffa0d ("net: mana: Fix oversized sge0 for GSO packets")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/microsoft/mana/mana_en.c