]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: netpoll: Initialize UDP checksum field before checksumming
authorBreno Leitao <leitao@debian.org>
Fri, 20 Jun 2025 18:48:55 +0000 (11:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Jun 2025 20:14:51 +0000 (13:14 -0700)
commitf5990207026987a353d5a95204c4d9cb725637fd
treebbe395c4191ec150a53d7a4175b0f8562fc01f5b
parent95b6759a81833d0e8c7456430186c2f6d174764e
net: netpoll: Initialize UDP checksum field before checksumming

commit f1fce08e63fe ("netpoll: Eliminate redundant assignment") removed
the initialization of the UDP checksum, which was wrong and broke
netpoll IPv6 transmission due to bad checksumming.

udph->check needs to be set before calling csum_ipv6_magic().

Fixes: f1fce08e63fe ("netpoll: Eliminate redundant assignment")
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250620-netpoll_fix-v1-1-f9f0b82bc059@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netpoll.c