From: Alexei Starovoitov <ast@plumgrid.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>,
Daniel Borkmann <daniel@iogearbox.net>,
netdev@vger.kernel.org
Subject: [PATCH net-next 0/2] bpf: introduce bpf_skb_vlan_push/pop() helpers
Date: Thu, 16 Jul 2015 19:58:02 -0700 [thread overview]
Message-ID: <1437101884-2081-1-git-send-email-ast@plumgrid.com> (raw)
Let eBPF programs call skb_vlan_push/pop via helpers.
JIT changes to accomodate of re-caching of skb->data and headerlen
turned out to be pretty simple.
This patch is on top of Daniel's bpf_get_cgroup_classid():
http://patchwork.ozlabs.org/patch/495826/
to avoid merge conflicts.
Alexei Starovoitov (2):
bpf: introduce bpf_skb_vlan_push/pop() helpers
test_bpf: add bpf_skb_vlan_push/pop() tests
arch/s390/net/bpf_jit_comp.c | 4 ++
arch/x86/net/bpf_jit_comp.c | 80 ++++++++++++++++++----------------
include/linux/bpf.h | 2 +
include/linux/filter.h | 1 +
include/uapi/linux/bpf.h | 2 +
kernel/bpf/core.c | 1 +
lib/test_bpf.c | 98 ++++++++++++++++++++++++++++++++++++++++--
net/core/filter.c | 49 +++++++++++++++++++++
8 files changed, 196 insertions(+), 41 deletions(-)
--
1.7.9.5
next reply other threads:[~2015-07-17 2:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 2:58 Alexei Starovoitov [this message]
2015-07-17 2:58 ` [PATCH net-next 1/2] bpf: introduce bpf_skb_vlan_push/pop() helpers Alexei Starovoitov
2015-07-17 8:12 ` Eric Dumazet
2015-07-17 18:17 ` Alexei Starovoitov
2015-07-17 2:58 ` [PATCH net-next 2/2] test_bpf: add bpf_skb_vlan_push/pop() tests Alexei Starovoitov
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=1437101884-2081-1-git-send-email-ast@plumgrid.com \
--to=ast@plumgrid.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=holzheu@linux.vnet.ibm.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 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.