From: "Alice Mikityanska" <alice.kernel@fastmail.im>
To: "Gal Pressman" <gal@nvidia.com>,
"Daniel Borkmann" <daniel@iogearbox.net>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Xin Long" <lucien.xin@gmail.com>,
"Willem de Bruijn" <willemdebruijn.kernel@gmail.com>,
"Willem de Bruijn" <willemb@google.com>,
"David Ahern" <dsahern@kernel.org>,
"Nikolay Aleksandrov" <razor@blackwall.org>
Cc: "Shuah Khan" <shuah@kernel.org>,
"Stanislav Fomichev" <stfomichev@gmail.com>,
"Andrew Lunn" <andrew+netdev@lunn.ch>,
"Simon Horman" <horms@kernel.org>,
"Florian Westphal" <fw@strlen.de>,
netdev@vger.kernel.org, "Alice Mikityanska" <alice@isovalent.com>
Subject: Re: [PATCH net-next v4 02/12] udp: gso: Simplify handling length in GSO_PARTIAL
Date: Wed, 13 May 2026 11:23:22 +0200 [thread overview]
Message-ID: <35cf30b6-f3ac-4af3-816b-53511625d916@app.fastmail.com> (raw)
In-Reply-To: <6bd88b37-4aeb-4783-8b92-62b38fe8603d@nvidia.com>
On Wed, May 13, 2026, at 09:53, Gal Pressman wrote:
> Hi Alice,
>
> On 12/05/2026 19:56, Alice Mikityanska wrote:
>> From: Alice Mikityanska <alice@isovalent.com>
>>
>> Taking further the idea of commit b10b446ce7ad ("udp: gso: Use single
>> MSS length in UDP header for GSO_PARTIAL"), simplify the implementation
>> and fix the checksum (apparently ignored by hardware anyway).
>>
>> The mentioned commit started using msslen for uh->len, but still uses
>> newlen to adjust uh->check. If the formula for check is fixed, newlen is
>> assigned but never used before the loop, and newlen is overwritten after
>> the loop. This makes msslen not really necessary, as we can reuse
>> newlen, if we don't adjust mss before. The adjustment of mss can be
>> simply dropped, because mss is not used anywhere else below.
>>
>> This brings us back to one variable, drops an unneeded arithmetic for
>> mss, and fixes the UDP checksum.
>>
>> Signed-off-by: Alice Mikityanska <alice@isovalent.com>
>> Cc: Gal Pressman <gal@nvidia.com>
>> Reviewed-by: Willem de Bruijn <willemb@google.com>
>
> Heads up, this is going to conflict with this fix:
> https://lore.kernel.org/netdev/20260513074349.2152146-1-gal@nvidia.com/
Thanks for the heads up! When I submitted mine, your patch wasn't on the
list yet, so it's rather the other way around :). Anyway, let's combine
our efforts, since we are fixing different aspects of the same area of
code. I commented on your patch and suggested to base it on top of mine
to avoid creating a new bug with the checksum. If my series doesn't get
merged in this iteration, feel free to cherry-pick this commit, it's
pretty much independent.
next prev parent reply other threads:[~2026-05-13 9:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 16:56 [PATCH net-next v4 00/12] BIG TCP for UDP tunnels Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 01/12] net/sched: act_csum: don't mangle UDP tunnel GSO packets Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 02/12] udp: gso: Simplify handling length in GSO_PARTIAL Alice Mikityanska
2026-05-13 7:53 ` Gal Pressman
2026-05-13 9:23 ` Alice Mikityanska [this message]
2026-05-13 9:40 ` Gal Pressman
2026-05-12 16:56 ` [PATCH net-next v4 03/12] geneve: Fix off-by-one comparing with GRO_LEGACY_MAX_SIZE Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 04/12] net: Use helpers to get/set UDP len tree-wide Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 05/12] net: Enable BIG TCP with partial GSO Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 06/12] udp: Support gro_ipv4_max_size > 65536 Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 07/12] udp: Support BIG TCP GSO packets where they can occur Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 08/12] udp: Validate UDP length in udp_gro_receive Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 09/12] udp: Set length in UDP header to 0 for big GSO packets Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 10/12] vxlan: Enable BIG TCP packets Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 11/12] geneve: " Alice Mikityanska
2026-05-12 16:56 ` [PATCH net-next v4 12/12] selftests: net: Add a test for BIG TCP in UDP tunnels Alice Mikityanska
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=35cf30b6-f3ac-4af3-816b-53511625d916@app.fastmail.com \
--to=alice.kernel@fastmail.im \
--cc=alice@isovalent.com \
--cc=andrew+netdev@lunn.ch \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=gal@nvidia.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=lucien.xin@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=razor@blackwall.org \
--cc=shuah@kernel.org \
--cc=stfomichev@gmail.com \
--cc=willemb@google.com \
--cc=willemdebruijn.kernel@gmail.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