mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
selftests: seg6: disable DAD on IPv6 router cfg for srv6_end_dt4_l3vpn_test
[ Upstream commit21a933c79a
] 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:2195444e09
("selftests: add selftest for the SRv6 End.DT4 behavior") Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
c498e5d392
commit
7099beeec9
1 changed files with 5 additions and 1 deletions
|
@ -232,10 +232,14 @@ setup_rt_networking()
|
|||
local nsname=rt-${rt}
|
||||
|
||||
ip netns add ${nsname}
|
||||
|
||||
ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0
|
||||
ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0
|
||||
|
||||
ip link set veth-rt-${rt} netns ${nsname}
|
||||
ip -netns ${nsname} link set veth-rt-${rt} name veth0
|
||||
|
||||
ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0
|
||||
ip -netns ${nsname} addr add ${IPv6_RT_NETWORK}::${rt}/64 dev veth0 nodad
|
||||
ip -netns ${nsname} link set veth0 up
|
||||
ip -netns ${nsname} link set lo up
|
||||
|
||||
|
|
Loading…
Reference in a new issue