From: Paolo Abeni <pabeni@redhat.com>
To: Jakub Kicinski <kuba@kernel.org>, Ronak Doshi <ronak.doshi@broadcom.com>
Cc: netdev@vger.kernel.org, Guolin Yang <guolin.yang@broadcom.com>,
Broadcom internal kernel review list
<bcm-kernel-feedback-list@broadcom.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] vmxnet3: correctly report gso type for UDP tunnels
Date: Mon, 19 May 2025 09:29:58 +0200 [thread overview]
Message-ID: <71d0fbf8-00f7-4e0b-819d-d0b6efb01f03@redhat.com> (raw)
In-Reply-To: <20250515070250.7c277988@kernel.org>
On 5/15/25 4:02 PM, Jakub Kicinski wrote:
> On Tue, 13 May 2025 21:05:02 +0000 Ronak Doshi wrote:
>> + skb->encapsulation = 1;
>> }
>> WARN_ON_ONCE(!(gdesc->rcd.tcp || gdesc->rcd.udp) &&
>> !(le32_to_cpu(gdesc->dword[0]) &
>> @@ -1465,6 +1466,7 @@ vmxnet3_rx_csum(struct vmxnet3_adapter *adapter,
>> if ((le32_to_cpu(gdesc->dword[0]) &
>> (1UL << VMXNET3_RCD_HDR_INNER_SHIFT))) {
>> skb->csum_level = 1;
>> + skb->encapsulation = 1;
>
> IIRC ->encapsulation means that ->inner.. fields are valid, no?
> And I don't see you setting any of these.
>
> Paolo, please keep me honest, IIUC you have very recent and very
> relevant experience with virtio.
Yes. Specifically the GSO code expect the inner headers to be set,
otherwise the segmentation will yield quite wrong results.
Note that reproducing the issue requires a quite specific setup, i.e.
bridging (or tc redirecting) the ingress traffic from an
UDP-tunnel-HW-GRO enabled device into an egress device not supporting
tx-udp_tnl-segmentation.
If otherwise the traffic goes into the UDP tunnel rx path, such
processing will set the needed field correctly and no issue could/should
be observed AFAICS.
@Ronak: I think the problem pre-exists this specific patch, but since
you are fixing the relevant offload, I think it should be better to
address the problem now.
Thanks,
Paolo
next prev parent reply other threads:[~2025-05-19 7:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 21:05 Ronak Doshi
2025-05-15 14:02 ` Jakub Kicinski
2025-05-15 20:38 ` Ronak Doshi
2025-05-15 21:25 ` Jakub Kicinski
2025-05-15 23:38 ` Ronak Doshi
2025-05-19 7:32 ` Paolo Abeni
2025-05-19 7:29 ` Paolo Abeni [this message]
2025-05-27 16:10 ` Ronak Doshi
2025-05-29 21:55 ` Ronak Doshi
2025-05-29 23:33 ` Jakub Kicinski
2025-05-30 0:50 ` Ronak Doshi
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=71d0fbf8-00f7-4e0b-819d-d0b6efb01f03@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=guolin.yang@broadcom.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ronak.doshi@broadcom.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
all inboxes | Powered by JetHome®