]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, bpf: test_lwt_ip_encap: Really disable rp_filter
authorJiri Benc <jbenc@redhat.com>
Thu, 23 Sep 2021 08:40:22 +0000 (10:40 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 28 Sep 2021 07:30:38 +0000 (09:30 +0200)
commitca502a8498ddd6fec9224fb5e8c86bb412725c2f
treec9f1306cfb0dd42d7f6120db285a7a463e2d06c8
parent7ae7555d247b22b2867bd0c414779adf2dbe6daf
selftests, bpf: test_lwt_ip_encap: Really disable rp_filter

It's not enough to set net.ipv4.conf.all.rp_filter=0, that does not override
a greater rp_filter value on the individual interfaces. We also need to set
net.ipv4.conf.default.rp_filter=0 before creating the interfaces. That way,
they'll also get their own rp_filter value of zero.

Fixes: 9c66e6431067f ("selftests: bpf: add test_lwt_ip_encap selftest")
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/b1cdd9d469f09ea6e01e9c89a6071c79b7380f89.1632386362.git.jbenc@redhat.com
tools/testing/selftests/bpf/test_lwt_ip_encap.sh