From: Alexei Starovoitov <ast@plumgrid.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>,
Michael Holzheu <holzheu@linux.vnet.ibm.com>,
Daniel Borkmann <daniel@iogearbox.net>,
netdev@vger.kernel.org
Subject: [PATCH v2 net-next 0/2] bpf: introduce bpf_skb_vlan_push/pop() helpers
Date: Mon, 20 Jul 2015 20:34:17 -0700 [thread overview]
Message-ID: <1437449659-23765-1-git-send-email-ast@plumgrid.com> (raw)
Let TC+eBPF programs call skb_vlan_push/pop via helpers.
v1->v2:
- reworded commit log to better explain correctness of re-caching
and fixed comparison of mixed endiannes (suggested by Eric)
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 | 50 +++++++++++++++++++++
8 files changed, 197 insertions(+), 41 deletions(-)
--
1.7.9.5
next reply other threads:[~2015-07-21 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-21 3:34 Alexei Starovoitov [this message]
2015-07-21 3:34 ` [PATCH v2 net-next 1/2] bpf: introduce bpf_skb_vlan_push/pop() helpers Alexei Starovoitov
2015-07-21 3:34 ` [PATCH v2 net-next 2/2] test_bpf: add bpf_skb_vlan_push/pop() tests Alexei Starovoitov
2015-07-21 3:52 ` [PATCH v2 net-next 0/2] bpf: introduce bpf_skb_vlan_push/pop() helpers David Miller
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=1437449659-23765-1-git-send-email-ast@plumgrid.com \
--to=ast@plumgrid.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--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 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).