]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: add skb->field examples and tests
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 13 Mar 2015 18:57:43 +0000 (11:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 02:02:28 +0000 (22:02 -0400)
commit9cc2417b76476c268d328d4aee51462c3e9bf5ed
tree3c294086671617614f672aeb0d14bd2496fdb23c
parentd986ca2b1797726165e652357e0cbbb11cbc2ab0
samples: bpf: add skb->field examples and tests

- modify sockex1 example to count number of bytes in outgoing packets
- modify sockex2 example to count number of bytes and packets per flow
- add 4 stress tests that exercise 'skb->field' code path of verifier

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
samples/bpf/sockex1_kern.c
samples/bpf/sockex1_user.c
samples/bpf/sockex2_kern.c
samples/bpf/sockex2_user.c
samples/bpf/test_verifier.c