Commit 9def624
net: filter: additional BPF tests
All tests should pass with and without JIT.
Example output:
test_bpf: #0 TAX 35 16 16 PASS
test_bpf: #1 TXA 7 7 7 PASS
test_bpf: #2 ADD_SUB_MUL_K 10 PASS
test_bpf: #3 DIV_KX 33 PASS
test_bpf: hardkernel#4 AND_OR_LSH_K 10 10 PASS
test_bpf: hardkernel#5 LD_IND 8 8 8 PASS
test_bpf: hardkernel#6 LD_ABS 8 8 8 PASS
test_bpf: hardkernel#7 LD_ABS_LL 13 14 PASS
test_bpf: hardkernel#8 LD_IND_LL 12 12 12 PASS
test_bpf: hardkernel#9 LD_ABS_NET 10 12 PASS
test_bpf: hardkernel#10 LD_IND_NET 11 12 12 PASS
...
Numbers are times in nsec per filter for given input data.
Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 64a8946 commit 9def624
1 file changed
Lines changed: 1224 additions & 0 deletions
0 commit comments