]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:42:34 +0000 (15:42 +0200)
commit59438d7551fe6b9d25e0a2f2284f9b05462f9d66
treefeaeb96e8534887ef609ed25a7fbb2cbea4b4e4b
parentaa88e32fa301d14de83d7f6e2bb1d7dbad0a91a0
selftests, bpf: test_lwt_ip_encap: Really disable rp_filter

[ Upstream commit 79e2c306667542b8ee2d9a9d947eadc7039f0a3c ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/test_lwt_ip_encap.sh