summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2019-08-27 00:27:12 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2019-08-28 00:39:43 +0200
commit47ee6e86e0a3e3a15fbdd6d94aab39e46013c961 (patch)
tree692e72d727d99b88fd9c0eb47096ce716f59f11c /tools/testing/selftests/bpf/prog_tests
parentMerge branch 'bpf-misc-test-fixes' (diff)
downloadlinux-47ee6e86e0a3e3a15fbdd6d94aab39e46013c961.tar.xz
linux-47ee6e86e0a3e3a15fbdd6d94aab39e46013c961.zip
selftests/bpf: remove wrong nhoff in flow dissector test
.nhoff = 0 is (correctly) reset to ETH_HLEN on the next line so let's drop it. Signed-off-by: Stanislav Fomichev <sdf@google.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/flow_dissector.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index aee0cda7870b..92563898867c 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
@@ -344,7 +344,6 @@ struct test tests[] = {
.tcp.dest = 8080,
},
.keys = {
- .nhoff = 0,
.nhoff = ETH_HLEN,
.thoff = ETH_HLEN + sizeof(struct iphdr) +
sizeof(struct iphdr),