Re: [PATCH net] net: netpoll: Initialize UDP checksum field before checksumming

From: Simon Horman
Date: Sat Jun 21 2025 - 13:55:44 EST


On Fri, Jun 20, 2025 at 11:48:55AM -0700, Breno Leitao wrote:
> 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@xxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>