public inbox for virtio-comment@lists.linux.dev
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: virtio-comment@lists.linux.dev, maxime.coquelin@redhat.com,
	Eelco Chaudron <echaudro@redhat.com>,
	Stefano Garzarella <sgarzare@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	kshankar@marvell.com
Subject: Re: [PATCH v10 1/3] virtio-net: clarify NEEDS_CSUM semantic for GSO packats.
Date: Tue, 26 Nov 2024 16:30:49 +0100	[thread overview]
Message-ID: <76c679d8-0674-4213-9d82-a29d458882ae@redhat.com> (raw)
In-Reply-To: <CACGkMEvVAoQAfKYnvuN5ZQqG-UgG+nUuhoAHruSmmV_rDSrc5w@mail.gmail.com>

On 11/26/24 04:01, Jason Wang wrote:
> On Tue, Nov 26, 2024 at 12:01 AM Paolo Abeni <pabeni@redhat.com> wrote:
>> On 11/25/24 03:51, Jason Wang wrote:
>>> On Sat, Nov 9, 2024 at 12:53 AM Paolo Abeni <pabeni@redhat.com> wrote:
>>>>
>>>> The current wording is a bit unclear hinting to possible additional
>>>> nested headers. For GSO packets virtio net (currently) supports
>>>> offload for the checksum of single transport header, explicitly state
>>>> that in both the driver and device sections.
>>>>
>>>> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
>>>> ---
>>>>  device-types/net/description.tex | 11 ++++++++++-
>>>>  1 file changed, 10 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/device-types/net/description.tex b/device-types/net/description.tex
>>>> index b2a0d39..3099c6f 100644
>>>> --- a/device-types/net/description.tex
>>>> +++ b/device-types/net/description.tex
>>>> @@ -605,6 +605,11 @@ \subsubsection{Packet Transmission}\label{sec:Device Types / Network Device / De
>>>>  \item the driver MUST validate the packet checksum at
>>>>         offset \field{csum_offset} from \field{csum_start} as well as all
>>>>         preceding offsets;
>>>> +\begin{note}
>>>> +If \field{gso_type} differs from VIRTIO_NET_HDR_GSO_NONE, \field{csum_offset}
>>>> +points to the only transport header present in the packet, and there are no
>>>> +additional preceding checksums validated by VIRTIO_NET_HDR_F_NEEDS_CSUM.
>>>> +\end{note}
>>>
>>> I wonder if this defeats the purpose of LCO where the outer checksum
>>> could be deduced.
>>
>> I don't see how?!? The added statement is not a behavior change, it just
>> clarifies the existing text. I don't see any implications WRT LCO.
>>
>> Could you please describe in details the eventual problem?
> 
> Not a native speaker, just want to check if "no additional preceding
> checksums validated by VIRTIO_NET_HDR_F_NEEDS_CSUM" is in conflict
> with the case when we apply LCO for the outer. Or do we treat outer
> checksum as "preceding checksums" here.

My take is that with LCO virtio is not offloading anything. The header
subject to LCO, from virtio perspective, is just constant header, not
offloaded via any virtio hdr field. The above spec statement applies/is
valid verbatim even in presence of LCO.

Cheers,

Paolo


  reply	other threads:[~2024-11-26 15:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-08 16:52 [PATCH v10 0/3] virtio-net: define UDP tunnel offload Paolo Abeni
2024-11-08 16:52 ` [PATCH v10 1/3] virtio-net: clarify NEEDS_CSUM semantic for GSO packats Paolo Abeni
2024-11-25  2:51   ` Jason Wang
2024-11-25 16:01     ` Paolo Abeni
2024-11-26  3:01       ` Jason Wang
2024-11-26 15:30         ` Paolo Abeni [this message]
2024-11-08 16:52 ` [PATCH v10 2/3] virtio-net: define UDP tunnel segmentation offload feature Paolo Abeni
2024-11-25  2:50   ` Jason Wang
2024-11-25 16:31     ` Paolo Abeni
2024-11-26  3:04       ` Jason Wang
2024-11-08 16:52 ` [PATCH v10 3/3] virtio-net: define UDP tunnel checksum " Paolo Abeni
2024-11-25  3:41   ` Jason Wang
2024-11-25 16:44     ` Paolo Abeni
2024-11-26  3:07       ` Jason Wang
2024-11-26 15:37         ` Paolo Abeni
2024-11-27  2:53           ` Jason Wang
2024-11-15 17:44 ` [PATCH v10 0/3] virtio-net: define UDP tunnel offload Paolo Abeni
2024-11-18 20:45   ` Willem de Bruijn

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=76c679d8-0674-4213-9d82-a29d458882ae@redhat.com \
    --to=pabeni@redhat.com \
    --cc=echaudro@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kshankar@marvell.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=sgarzare@redhat.com \
    --cc=virtio-comment@lists.linux.dev \
    --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