OSDN Git Service

selftests/bpf: remove wrong nhoff in flow dissector test
authorStanislav Fomichev <sdf@google.com>
Mon, 26 Aug 2019 22:27:12 +0000 (15:27 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 27 Aug 2019 22:39:43 +0000 (00:39 +0200)
.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>
tools/testing/selftests/bpf/prog_tests/flow_dissector.c

index aee0cda..9256389 100644 (file)
@@ -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),