]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: srv6: make srv6_end_dt46_l3vpn_test more robust
authorAndrea Mayer <andrea.mayer@uniroma2.it>
Thu, 27 Apr 2023 09:49:23 +0000 (11:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:33 +0000 (11:53 +0200)
commit82a2297c59bddaa3ae320065ecdf17ab0d9de75e
tree3d7107f3f943bed3c29022c9c93499ecbc1d78ed
parentaee60358bf91375a2bb32dba04eec6cc070e534b
selftests: srv6: make srv6_end_dt46_l3vpn_test more robust

[ Upstream commit 46ef24c60f8ee70662968ac55325297ed4624d61 ]

On some distributions, the rp_filter is automatically set (=1) by
default on a netdev basis (also on VRFs).
In an SRv6 End.DT46 behavior, decapsulated IPv4 packets are routed using
the table associated with the VRF bound to that tunnel. During lookup
operations, the rp_filter can lead to packet loss when activated on the
VRF.
Therefore, we chose to make this selftest more robust by explicitly
disabling the rp_filter during tests (as it is automatically set by some
Linux distributions).

Fixes: 9a4f76db63f9 ("selftests: seg6: add selftest for SRv6 End.DT46 Behavior")
Reported-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Tested-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/srv6_end_dt46_l3vpn_test.sh