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, brouer@redhat.com,
lorenzo.bianconi@redhat.com, toshiaki.makita1@gmail.com
Subject: [PATCH v2 bpf-next 0/2] add xdp_build_skb_from_frame utility routine
Date: Tue, 12 Jan 2021 19:26:11 +0100 [thread overview]
Message-ID: <cover.1610475660.git.lorenzo@kernel.org> (raw)
Introduce __xdp_build_skb_from_frame and xdp_build_skb_from_frame routines
to build the skb from a xdp_frame. Respect to __xdp_build_skb_from_frame,
xdp_build_skb_from_frame will allocate the skb object.
Rely on __xdp_build_skb_from_frame/xdp_build_skb_from_frame in cpumap and
veth code.
Changes since v1:
- fix a checkpatch warning
- improve commit log in patch 2/2
Lorenzo Bianconi (2):
net: xdp: introduce __xdp_build_skb_from_frame utility routine
net: xdp: introduce xdp_build_skb_from_frame utility routine
drivers/net/veth.c | 18 +++-----------
include/net/xdp.h | 5 ++++
kernel/bpf/cpumap.c | 46 ++---------------------------------
net/core/xdp.c | 59 +++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 69 insertions(+), 59 deletions(-)
--
2.29.2
next reply other threads:[~2021-01-12 18:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 18:26 Lorenzo Bianconi [this message]
2021-01-12 18:26 ` [PATCH v2 bpf-next 1/2] net: xdp: introduce __xdp_build_skb_from_frame utility routine Lorenzo Bianconi
2021-01-12 18:26 ` [PATCH v2 bpf-next 2/2] net: xdp: introduce xdp_build_skb_from_frame " Lorenzo Bianconi
2021-01-18 22:30 ` [PATCH v2 bpf-next 0/2] add " patchwork-bot+netdevbpf
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.1610475660.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=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.