From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Cc: Network Development <netdev@vger.kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Willem de Bruijn <willemb@google.com>,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH net-next] af_packet: Provide a TPACKET_V2 compatible Tx path for TPACKET_V3
Date: Fri, 30 Dec 2016 18:03:16 -0500 [thread overview]
Message-ID: <20161230230316.GB31800@oracle.com> (raw)
In-Reply-To: <CAF=yD-+CMjr_9s2wVZOQEPAP5h9jpnMe3vckYGbQ9hnQoGWFEw@mail.gmail.com>
On (12/30/16 16:33), Willem de Bruijn wrote:
>
> Once we define the interface as equivalent to v2, we cannot redefine it to
> support v3-only features later.
What v3 only features do we think we want to support?
Tpacket_v3 went in
commit f6fb8f100b807378fda19e83e5ac6828b638603a
:
Date: Fri Aug 19 10:18:16 2011 +0000
since then apps that want to use the Rx benefits
have to deal with this dual socket feature, where
with "one socket for super-fast rx, zero Tx".
The zero-tx part sounds like a regression to me.
If we want to have something that does block Tx,
and we cannot figure out how to retro-fit it to
the exisiting APIs, we can always go for TPACKET_V4.
> > TPACKET_V2 --> TPACKET_V3:
> > - - Flexible buffer implementation:
> > + - Flexible buffer implementation for RX_RING:
> > 1. Blocks can be configured with non-static frame-size
>
> This is one of the main advantages of the v3 interface, and also
sure, and we see some marginal benefits for this, when
we try to use it for our apps. But the "marginal" part
is not worth it, if I have to use separate sockets for tx and rx.
> relevant to Tx. The current implementation does not consult
> tpacket3_hdr->tp_next_offset and would preclude adding that
> later.
When is "later"? its been 6+ years.
--Sowmini
next prev parent reply other threads:[~2016-12-30 23:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-30 16:54 [PATCH net-next] af_packet: Provide a TPACKET_V2 compatible Tx path for TPACKET_V3 Sowmini Varadhan
2016-12-30 21:33 ` Willem de Bruijn
2016-12-30 23:03 ` Sowmini Varadhan [this message]
2016-12-30 23:39 ` Willem de Bruijn
2016-12-31 0:48 ` Sowmini Varadhan
2016-12-31 4:59 ` Willem de Bruijn
2016-12-31 12:21 ` Sowmini Varadhan
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=20161230230316.GB31800@oracle.com \
--to=sowmini.varadhan@oracle.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).