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)
commit614cd3bd3758a806cea497d493b584e6157561f7
tree3c294086671617614f672aeb0d14bd2496fdb23c
parent9bac3d6d548e5cc925570b263f35b70a00a00ffd
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