From: Lorenzo Bianconi <lorenzo@kernel.org>
To: netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
lorenzo.bianconi@redhat.com, brouer@redhat.com,
ilias.apalodimas@linaro.org
Subject: [RFC 0/2] xdp: introduce bulking for page_pool tx return path
Date: Tue, 20 Oct 2020 11:33:36 +0200 [thread overview]
Message-ID: <cover.1603185591.git.lorenzo@kernel.org> (raw)
xdp_return_frame/xdp_return_frame_napi and page_pool_put_page are usually
run inside the driver NAPI tx completion loop so it is possible batch them.
Introduce bulking capability in xdp tx return path (XDP_TX and XDP_REDIRECT).
Convert mvneta driver to xdp_return_frame_bulk APIs.
mvneta upstream code:
XDP_TX: ~296Kpps
XDP_REDIRECT: ~273Kpps
mvneta + xdp_return_frame_bulk APIs:
XDP_TX: ~303Kpps
XDP_REDIRECT: ~287Kpps
Lorenzo Bianconi (2):
net: xdp: introduce bulking for xdp tx return path
net: page_pool: add bulk support for ptr_ring
drivers/net/ethernet/marvell/mvneta.c | 8 ++---
include/net/page_pool.h | 21 ++++++++++++
include/net/xdp.h | 11 ++++++
net/core/page_pool.c | 37 ++++++++++++++++++++
net/core/xdp.c | 49 +++++++++++++++++++++++++++
5 files changed, 122 insertions(+), 4 deletions(-)
--
2.26.2
next reply other threads:[~2020-10-20 9:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 9:33 Lorenzo Bianconi [this message]
2020-10-20 9:33 ` [RFC 1/2] net: xdp: introduce bulking for xdp tx return path Lorenzo Bianconi
2020-10-20 9:46 ` Jesper Dangaard Brouer
2020-10-20 10:34 ` Lorenzo Bianconi
2020-10-20 9:33 ` [RFC 2/2] net: page_pool: add bulk support for ptr_ring Lorenzo Bianconi
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=cover.1603185591.git.lorenzo@kernel.org \
--to=lorenzo@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brouer@redhat.com \
--cc=davem@davemloft.net \
--cc=ilias.apalodimas@linaro.org \
--cc=kuba@kernel.org \
--cc=lorenzo.bianconi@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).