All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Heng Qi <hengqi@linux.alibaba.com>
Cc: Jason Wang <jasowang@redhat.com>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	Yuri Benditovich <yuri.benditovich@daynix.com>,
	Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>
Subject: [virtio-comment] Re: [virtio-dev] Re: [virtio-comment] Re: [PATCH v5] virtio-net: device does not deliver partially checksummed packet and may validate the checksum
Date: Wed, 20 Dec 2023 02:35:46 -0500	[thread overview]
Message-ID: <20231220020428-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <68b0d00b-8b3b-4bd4-9e7c-c3b811dafd8c@linux.alibaba.com>

On Wed, Dec 20, 2023 at 02:30:01PM +0800, Heng Qi wrote:
> But why are we discussing this?

I think basically at this point everyone is confused about what
the feature does. right now we have packets
with 
#define VIRTIO_NET_HDR_F_NEEDS_CSUM     1       -> partial
#define VIRTIO_NET_HDR_F_DATA_VALID     2       -> unnecessary
and packets without either 			-> none

if both 1 and 2 are set then linux uses VIRTIO_NET_HDR_F_NEEDS_CSUM but
I am not sure it's not a mistake. Maybe it does not matter.

What does this new thing do? So far all we have is "XDP will turn it on"
which is not really sufficient. I assumed it somehow replaces
partial with complete. That would make sense for many reasons,
for example the checksum fields in the header can be reused
for other purposes. But maybe not?


-- 
MST


This publicly archived list offers a means to provide input to the
OASIS Virtual I/O Device (VIRTIO) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: virtio-comment-subscribe@lists.oasis-open.org
Unsubscribe: virtio-comment-unsubscribe@lists.oasis-open.org
List help: virtio-comment-help@lists.oasis-open.org
List archive: https://lists.oasis-open.org/archives/virtio-comment/
Feedback License: https://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: https://www.oasis-open.org/policies-guidelines/mailing-lists
Committee: https://www.oasis-open.org/committees/virtio/
Join OASIS: https://www.oasis-open.org/join/


WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Heng Qi <hengqi@linux.alibaba.com>
Cc: Jason Wang <jasowang@redhat.com>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	Yuri Benditovich <yuri.benditovich@daynix.com>,
	Xuan Zhuo <xuanzhuo@linux.alibaba.com>,
	"virtio-dev@lists.oasis-open.org"
	<virtio-dev@lists.oasis-open.org>
Subject: Re: [virtio-dev] Re: [virtio-comment] Re: [PATCH v5] virtio-net: device does not deliver partially checksummed packet and may validate the checksum
Date: Wed, 20 Dec 2023 02:35:46 -0500	[thread overview]
Message-ID: <20231220020428-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <68b0d00b-8b3b-4bd4-9e7c-c3b811dafd8c@linux.alibaba.com>

On Wed, Dec 20, 2023 at 02:30:01PM +0800, Heng Qi wrote:
> But why are we discussing this?

I think basically at this point everyone is confused about what
the feature does. right now we have packets
with 
#define VIRTIO_NET_HDR_F_NEEDS_CSUM     1       -> partial
#define VIRTIO_NET_HDR_F_DATA_VALID     2       -> unnecessary
and packets without either 			-> none

if both 1 and 2 are set then linux uses VIRTIO_NET_HDR_F_NEEDS_CSUM but
I am not sure it's not a mistake. Maybe it does not matter.

What does this new thing do? So far all we have is "XDP will turn it on"
which is not really sufficient. I assumed it somehow replaces
partial with complete. That would make sense for many reasons,
for example the checksum fields in the header can be reused
for other purposes. But maybe not?


-- 
MST


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


  parent reply	other threads:[~2023-12-20  7:36 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-11  9:11 [virtio-comment] [PATCH v5] virtio-net: device does not deliver partially checksummed packet and may validate the checksum Heng Qi
2023-12-11 16:35 ` [virtio-comment] " Michael S. Tsirkin
2023-12-12  3:28   ` Heng Qi
2023-12-12  8:44     ` Michael S. Tsirkin
2023-12-12  9:23       ` Heng Qi
2023-12-12  9:30         ` Heng Qi
2023-12-15  9:51           ` Heng Qi
2023-12-15  9:51             ` [virtio-dev] " Heng Qi
2023-12-18  3:10             ` Jason Wang
2023-12-18  3:10               ` [virtio-dev] " Jason Wang
2023-12-18  4:54               ` Heng Qi
2023-12-18  4:54                 ` [virtio-dev] " Heng Qi
2023-12-19  7:53                 ` Jason Wang
2023-12-19  7:53                   ` [virtio-dev] " Jason Wang
2023-12-19 16:06                   ` [virtio-comment] " Heng Qi
2023-12-19 16:06                     ` Heng Qi
2023-12-20  5:48                     ` [virtio-comment] " Jason Wang
2023-12-20  5:48                       ` Jason Wang
2023-12-20  6:30                       ` [virtio-comment] " Heng Qi
2023-12-20  6:30                         ` Heng Qi
2023-12-20  6:59                         ` [virtio-comment] " Jason Wang
2023-12-20  6:59                           ` Jason Wang
2023-12-20  7:42                           ` [virtio-comment] " Heng Qi
2023-12-20  7:42                             ` [virtio-dev] " Heng Qi
2023-12-21  1:34                             ` Jason Wang
2023-12-21  1:34                               ` [virtio-dev] " Jason Wang
2023-12-21  3:43                               ` Heng Qi
2023-12-21  3:43                                 ` [virtio-dev] " Heng Qi
2023-12-21  4:04                                 ` Jason Wang
2023-12-21  4:04                                   ` [virtio-dev] " Jason Wang
2023-12-20  9:54                           ` Heng Qi
2023-12-20  9:54                             ` [virtio-dev] " Heng Qi
2023-12-20  7:35                         ` Michael S. Tsirkin [this message]
2023-12-20  7:35                           ` Michael S. Tsirkin
2023-12-20  9:31                           ` [virtio-comment] " Heng Qi
2023-12-20  9:31                             ` [virtio-dev] " Heng Qi
2023-12-21  1:41                             ` Jason Wang
2023-12-21  1:41                               ` [virtio-dev] " Jason Wang
2023-12-21  1:50                               ` Jason Wang
2023-12-21  1:50                                 ` [virtio-dev] " Jason Wang
2023-12-21  3:51                               ` [virtio-comment] " Heng Qi
2023-12-21  3:51                                 ` Heng Qi
2023-12-21  4:04                                 ` [virtio-comment] " Jason Wang
2023-12-21  4:04                                   ` Jason Wang
2023-12-21  1:34                           ` Jason Wang
2023-12-21  1:34                             ` Jason Wang
2023-12-21  3:45                             ` [virtio-comment] " Heng Qi
2023-12-21  3:45                               ` [virtio-dev] " Heng Qi
2023-12-21  3:51                               ` Jason Wang
2023-12-21  3:51                                 ` [virtio-dev] " Jason Wang
2023-12-19 18:41                   ` Michael S. Tsirkin
2023-12-19 18:41                     ` [virtio-dev] " Michael S. Tsirkin
2023-12-20  5:52                     ` Jason Wang
2023-12-20  5:52                       ` [virtio-dev] " Jason Wang

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=20231220020428-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=hengqi@linux.alibaba.com \
    --cc=jasowang@redhat.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=xuanzhuo@linux.alibaba.com \
    --cc=yuri.benditovich@daynix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.