Message ID | 20230510111638.12408-1-andrea.mayer@uniroma2.it |
---|---|
Headers | show |
Series | selftests: seg6: make srv6_end_dt4_l3vpn_test more robust | expand |
On 5/10/23 5:16 AM, Andrea Mayer wrote: > The srv6_end_dt4_l3vpn_test instantiates a virtual network consisting of > several routers (rt-1, rt-2) and hosts. > When the IPv6 addresses of rt-{1,2} routers are configured, the Deduplicate > Address Detection (DAD) kicks in when enabled in the Linux distros running > the selftests. DAD is used to check whether an IPv6 address is already > assigned in a network. Such a mechanism consists of sending an ICMPv6 Echo > Request and waiting for a reply. > As the DAD process could take too long to complete, it may cause the > failing of some tests carried out by the srv6_end_dt4_l3vpn_test script. > > To make the srv6_end_dt4_l3vpn_test more robust, we disable DAD on routers > since we configure the virtual network manually and do not need any address > deduplication mechanism at all. > > Fixes: 2195444e09b4 ("selftests: add selftest for the SRv6 End.DT4 behavior") > Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it> > --- > tools/testing/selftests/net/srv6_end_dt4_l3vpn_test.sh | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > Reviewed-by: David Ahern <dsahern@kernel.org>
On 5/10/23 5:16 AM, Andrea Mayer wrote: > On some distributions, the rp_filter is automatically set (=1) by > default on a netdev basis (also on VRFs). > In an SRv6 End.DT4 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: 2195444e09b4 ("selftests: add selftest for the SRv6 End.DT4 behavior") > Reported-by: Hangbin Liu <liuhangbin@gmail.com> > Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it> > Tested-by: Hangbin Liu <liuhangbin@gmail.com> > --- > .../testing/selftests/net/srv6_end_dt4_l3vpn_test.sh | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > Reviewed-by: David Ahern <dsahern@kernel.org>
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 10 May 2023 13:16:36 +0200 you wrote: > This pachset aims to improve and make more robust the selftests performed to > check whether SRv6 End.DT4 beahvior works as expected under different system > configurations. > Some Linux distributions enable Deduplication Address Detection and Reverse > Path Filtering mechanisms by default which can interfere with SRv6 End.DT4 > behavior and cause selftests to fail. > > [...] Here is the summary with links: - [net,1/2] selftests: seg6: disable DAD on IPv6 router cfg for srv6_end_dt4_l3vpn_test https://git.kernel.org/netdev/net/c/21a933c79a33 - [net,2/2] selftets: seg6: disable rp_filter by default in srv6_end_dt4_l3vpn_test https://git.kernel.org/netdev/net/c/f97b8401e0de You are awesome, thank you!