From: "Michael S. Tsirkin" <mst@redhat.com>
To: john.fastabend@gmail.com
Cc: alexei.starovoitov@gmail.com, netdev@vger.kernel.org
Subject: af_packet vs virtio
Date: Fri, 14 Apr 2017 05:42:59 +0300 [thread overview]
Message-ID: <20170414051304-mutt-send-email-mst@kernel.org> (raw)
Hi all, I wanted to raise the question of similarities between virtio
and new zero copy af_packet interfaces.
First I would like to mention that virtio device development isn't spec
limited - spec is there to help interoperability and add peace of mind
for people worried about IPR.
So I tend to accept patches without requiring people write it up in the
spec as work on spec proceeds at its own pace - all I ask is that the
virtio mailing list is copied, this requires contributor to subscribe
and in the process contributor promises that it's ok for us to add this
to spec in the future.
There shouldn't thus be a fundamental problem preventing use of virtio
format or reusing some of the code for af_packet, but it still might or
might not make sense - it was designed for CPU to CPU communication so
it seems to make sense though. So I would like that discussion to
happen even if we decide against.
And even if people decide against, the problem space is very similar. You
can look up packed ring layout proposal v2 - should I repost here? Our
prototyping shows significant performance improvements from using it as
compared to head/tail layout.
To start this discission I'm going to reply to this email reposting a
copy of the simplified virtio layout that might be appropriate for
af_packet as well.
--
MST
next reply other threads:[~2017-04-14 2:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-14 2:42 Michael S. Tsirkin [this message]
2017-04-14 2:50 ` repost: af_packet vs virtio (was packed ring layout proposal v2) Michael S. Tsirkin
2017-08-02 3:54 ` Steven Luong
2017-08-02 13:50 ` Michael S. Tsirkin
2017-08-07 4:16 ` Adam Tao
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=20170414051304-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=alexei.starovoitov@gmail.com \
--cc=john.fastabend@gmail.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).