]> git.ipfire.org Git - thirdparty/linux.git/commit
geneve: fix length used in GRO hint UDP checksum adjustment
authorAntoine Tenart <atenart@kernel.org>
Fri, 29 May 2026 14:47:00 +0000 (16:47 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 4 Jun 2026 08:48:46 +0000 (10:48 +0200)
commit1231623fd3b5aa6b41cce799ffb0d82e10914be4
tree5f86172c294050a66e9d71055504e1c6b14a7b8c
parent060c1daac7e0d01651cff326c8e0326b3787b272
geneve: fix length used in GRO hint UDP checksum adjustment

In geneve_post_decap_hint the length used for adjusting the UDP checksum
should be 'skb->len - gro_hint->nested_tp_offset' (UDP length) instead
of 'skb->len - gro_hint->nested_nh_offset' (IP length).

Fixes: fd0dd796576e ("geneve: use GRO hint option in the RX path")
Cc: Paolo Abeni <pabeni@redhat.com>
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260521131436.748832-1-jhs%40mojatatu.com
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260529144713.780938-1-atenart@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/geneve.c