netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/2] bpf: introduce bpf_skb_vlan_push/pop() helpers
@ 2015-07-21  3:34 Alexei Starovoitov
  2015-07-21  3:34 ` [PATCH v2 net-next 1/2] " Alexei Starovoitov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexei Starovoitov @ 2015-07-21  3:34 UTC (permalink / raw)
  To: David S. Miller; +Cc: Eric Dumazet, Michael Holzheu, Daniel Borkmann, netdev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-21  3:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21  3:34 [PATCH v2 net-next 0/2] bpf: introduce bpf_skb_vlan_push/pop() helpers Alexei Starovoitov
2015-07-21  3:34 ` [PATCH v2 net-next 1/2] " 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

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).