From: Lorenzo Bianconi <lorenzo@kernel.org>
To: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
ast@kernel.org, daniel@iogearbox.net, toshiaki.makita1@gmail.com,
lorenzo.bianconi@redhat.com, brouer@redhat.com, toke@redhat.com
Subject: [PATCH bpf-next 0/3] veth: add skb bulking allocation for XDP_PASS
Date: Tue, 26 Jan 2021 19:41:58 +0100 [thread overview]
Message-ID: <cover.1611685778.git.lorenzo@kernel.org> (raw)
Introduce bulking skb allocation for XDP_PASS verdict in veth driver.
The proposed approach has been tested in the following scenario:
eth (ixgbe) --> XDP_REDIRECT --> veth0 --> (remote-ns) veth1 --> XDP_PASS
XDP_REDIRECT: xdp_redirect_map bpf sample
XDP_PASS: xdp_rxq_info bpf sample
traffic generator: pkt_gen sending udp traffic on a remote device
bpf-next master: ~3.64Mpps
bpf-next + skb bulking allocation: ~3.75Mpps
Lorenzo Bianconi (3):
net: veth: introduce bulking for XDP_PASS
net: xdp: move XDP_BATCH_SIZE in common header
net: veth: alloc skb in bulk for ndo_xdp_xmit
drivers/net/veth.c | 101 ++++++++++++++++++++++++++++++++------------
include/net/xdp.h | 2 +
kernel/bpf/cpumap.c | 13 +++---
net/core/xdp.c | 11 +++++
4 files changed, 92 insertions(+), 35 deletions(-)
--
2.29.2
next reply other threads:[~2021-01-26 23:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-26 18:41 Lorenzo Bianconi [this message]
2021-01-26 18:41 ` [PATCH bpf-next 1/3] net: veth: introduce bulking for XDP_PASS Lorenzo Bianconi
2021-01-28 14:06 ` Jesper Dangaard Brouer
2021-01-28 15:17 ` Toshiaki Makita
2021-01-28 17:41 ` Lorenzo Bianconi
2021-01-26 18:42 ` [PATCH bpf-next 2/3] net: xdp: move XDP_BATCH_SIZE in common header Lorenzo Bianconi
2021-01-26 18:42 ` [PATCH bpf-next 3/3] net: veth: alloc skb in bulk for ndo_xdp_xmit 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.1611685778.git.lorenzo@kernel.org \
--to=lorenzo@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=brouer@redhat.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=toke@redhat.com \
--cc=toshiaki.makita1@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).