From: Gal Pressman <gal@nvidia.com>
To: Alice Mikityanska <alice.kernel@fastmail.im>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
netdev@vger.kernel.org
Cc: Simon Horman <horms@kernel.org>,
Dragos Tatulea <dtatulea@nvidia.com>,
Willem de Bruijn <willemb@google.com>,
Matthew Schwartz <matthew.schwartz@linux.dev>
Subject: Re: [PATCH net] udp: Fix UDP length on last GSO_PARTIAL segment
Date: Sun, 17 May 2026 09:41:19 +0300 [thread overview]
Message-ID: <58b42cf7-d18e-482c-b4e5-695dd490b40f@nvidia.com> (raw)
In-Reply-To: <6702f4e4-cc0d-42ed-b11e-ba272018750a@app.fastmail.com>
On 14/05/2026 17:45, Alice Mikityanska wrote:
> I can put it like this:
>
> udp: gso: Fix handling checksum in __udp_gso_segment
>
> The cited commit started using msslen for uh->len, but still uses newlen
> to adjust uh->check. Although the checksum is ignored in most cases due
> to the hardware offload, __udp_gso_segment attempts to maintain the
> correct one. Fix uh->check and adjust it by the right value.
>
> Additionally, after the fix, newlen becomes assigned and unused before
> the loop. The code can be simplified a bit if mss adjustment is dropped,
> so that newlen becomes equal to msslen before the loop, and msslen can
> be also dropped, saving a few lines of code.
>
> This brings us back to one variable, drops an unneeded arithmetic for
> mss, and fixes the UDP checksum.
>
> Fixes: b10b446ce7ad ("udp: gso: Use single MSS length in UDP header for GSO_PARTIAL")
> Signed-off-by: Alice Mikityanska <alice@isovalent.com>
> Reviewed-by: Willem de Bruijn <willemb@google.com>
Thanks Alice!
I will take this and submit both fixes.
prev parent reply other threads:[~2026-05-17 6:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-13 7:43 [PATCH net] udp: Fix UDP length on last GSO_PARTIAL segment Gal Pressman
2026-05-13 9:17 ` Alice Mikityanska
2026-05-13 9:43 ` Gal Pressman
2026-05-13 10:08 ` Alice Mikityanska
2026-05-13 11:28 ` Gal Pressman
2026-05-13 11:48 ` Alice Mikityanska
2026-05-13 12:01 ` Gal Pressman
2026-05-14 14:45 ` Alice Mikityanska
2026-05-17 6:41 ` Gal Pressman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=58b42cf7-d18e-482c-b4e5-695dd490b40f@nvidia.com \
--to=gal@nvidia.com \
--cc=alice.kernel@fastmail.im \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=dtatulea@nvidia.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=matthew.schwartz@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox