]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Set rp_filter in test_flow_dissector
authorJiri Benc <jbenc@redhat.com>
Tue, 8 Oct 2019 13:10:44 +0000 (15:10 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 8 Oct 2019 21:59:22 +0000 (23:59 +0200)
commitc729ffce370ca25ff533299402fcca50485e2c1d
treeb97930c8fe3b2569adf03d7b67751d28c18a0933
parent79af77ae69d8430cb722dc1f1a8f123973a368ba
selftests/bpf: Set rp_filter in test_flow_dissector

Many distributions enable rp_filter. However, the flow dissector test
generates packets that have 1.1.1.1 set as (inner) source address without
this address being reachable. This causes the selftest to fail.

The selftests should not assume a particular initial configuration. Switch
off rp_filter.

Fixes: 42973e1f840c ("selftests/bpf: test bpf flow dissection")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Petar Penkov <ppenkov@google.com>
Link: https://lore.kernel.org/bpf/513a298f53e99561d2f70b2e60e2858ea6cda754.1570539863.git.jbenc@redhat.com
tools/testing/selftests/bpf/test_flow_dissector.sh