From: Jason Wang <jasowang@redhat.com>
To: John Fastabend <john.fastabend@gmail.com>, mst@redhat.com
Cc: john.r.fastabend@intel.com, netdev@vger.kernel.org,
alexei.starovoitov@gmail.com, daniel@iogearbox.net
Subject: Re: [RFC PATCH] virtio_net: XDP support for adjust_head
Date: Wed, 4 Jan 2017 11:22:46 +0800 [thread overview]
Message-ID: <40812dd8-3fa2-ed85-9c99-d4b22a3d7b31@redhat.com> (raw)
In-Reply-To: <586BD7F3.60109@gmail.com>
On 2017年01月04日 00:57, John Fastabend wrote:
>>>> + /* Changing the headroom in buffers is a disruptive operation because
>>>> + * existing buffers must be flushed and reallocated. This will happen
>>>> + * when a xdp program is initially added or xdp is disabled by removing
>>>> + * the xdp program.
>>>> + */
>>> We probably need reset the device here, but maybe Michale has more ideas. And if
>>> we do this, another interesting thing to do is to disable EWMA and always use a
>>> single page for each packet, this could almost eliminate linearizing.
>> Well with normal MTU 1500 size we should not hit the linearizing case right? The
>> question is should we cap the MTU at GOOD_PACKET_LEN vs the current cap of
>> (PAGE_SIZE - overhead).
> Sorry responding to my own post with a bit more detail. I don't really like
> going to a page for each packet because we end up with double the pages in use
> for the "normal" 1500 MTU case. We could make the xdp allocation scheme smarter
> and allocate a page per packet when MTU is greater than 2k instead of using the
> EWMA but I would push those types of things at net-next and live with the
> linearizing behavior for now or capping the MTU.
>
Yes, agree.
Thanks
next prev parent reply other threads:[~2017-01-04 3:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 19:44 [RFC PATCH] virtio_net: XDP support for adjust_head John Fastabend
2017-01-02 19:47 ` John Fastabend
2017-01-03 6:01 ` Jason Wang
2017-01-03 16:54 ` John Fastabend
2017-01-03 16:57 ` John Fastabend
2017-01-04 3:22 ` Jason Wang [this message]
2017-01-04 3:21 ` Jason Wang
2017-01-03 22:16 ` Michael S. Tsirkin
2017-01-05 22:57 ` John Fastabend
2017-01-06 0:39 ` Michael S. Tsirkin
2017-01-06 3:28 ` John Fastabend
2017-01-04 18:58 ` John Fastabend
2017-01-05 3:10 ` Jason Wang
-- strict thread matches above, loose matches on Subject: below --
2016-12-23 18:43 John Fastabend
2016-12-23 21:46 ` John Fastabend
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=40812dd8-3fa2-ed85-9c99-d4b22a3d7b31@redhat.com \
--to=jasowang@redhat.com \
--cc=alexei.starovoitov@gmail.com \
--cc=daniel@iogearbox.net \
--cc=john.fastabend@gmail.com \
--cc=john.r.fastabend@intel.com \
--cc=mst@redhat.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).