selftests/bpf: remove wrong nhoff in flow dissector test
Subsystems (5)
PATCH 1/1 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 <[email protected]>
--- tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/bpf/prog_tests/flow_dissector.c +0 -1
@@ -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),
Signature · 1 line
2.23.0.187.g17f5b7556c-goog
Quoted 5 lines · Stanislav Fomichev
.nhoff = 0 is (correctly) reset to
ETH_HLENon the next line so let's drop it.Signed-off-by Stanislav Fomichev <[email protected]>
Acked-by Song Liu <[email protected]>
Quoted 19 lines
--- tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 - 1 file changed, 1 deletion(-)tools/testing/selftests/bpf/prog_tests/flow_dissector.c +0
-2@@ -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), --2.23.0.187.g17f5b7556c-goog
Quoted 4 lines · Stanislav Fomichev
.nhoff = 0 is (correctly) reset to
ETH_HLENon the next line so let's drop it.Signed-off-by Stanislav Fomichev <[email protected]>
Applied, thanks!