From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: ltp@lists.linux.it, mmarhefk@redhat.com, netdev@vger.kernel.org
Subject: Re: [RFC] [PATCH] netns: Fix race in virtual interface bringup
Date: Thu, 16 Nov 2017 10:56:20 +0100 [thread overview]
Message-ID: <c9276a9b-16f4-338f-e51f-abebc4181fed@6wind.com> (raw)
In-Reply-To: <20171115190423.kcrzl2odqtdr6ghg@xps>
Le 15/11/2017 à 20:04, Dan Rue a écrit :
> Adding CC netdev
>
> Can someone comment on the expected behavior of this test case?
>
> Here's the isolated test:
>
> ip netns del tst_net_ns0
> ip netns del tst_net_ns1
> ip netns add tst_net_ns0
> ip netns add tst_net_ns1
> ip netns exec tst_net_ns0 ip link add veth0 type veth peer name veth1
> ip netns exec tst_net_ns0 ip link set veth1 netns tst_net_ns1
>
> ip netns exec tst_net_ns0 ifconfig veth0 inet6 add fd00::2/64
> ip netns exec tst_net_ns1 ifconfig veth1 inet6 add fd00::3/64
ip netns exec tst_net_ns0 sysctl -w net.ipv6.conf.all.accept_dad=0
ip netns exec tst_net_ns0 sysctl -w net.ipv6.conf.veth0.accept_dad=0
ip netns exec tst_net_ns1 sysctl -w net.ipv6.conf.all.accept_dad=0
ip netns exec tst_net_ns1 sysctl -w net.ipv6.conf.veth1.accept_dad=0
> ip netns exec tst_net_ns0 ifconfig veth0 up
> ip netns exec tst_net_ns1 ifconfig veth1 up
>
> #sleep 2>
> ip netns exec tst_net_ns0 ping6 -q -c2 -I veth0 fd00::3
>
> This is essentially what LTP is running. Sometimes, on some systems,
> ping6 fails with "connect: Cannot assign requested address". Adding a
> "sleep 2" always fixes it (but we'd obviously like to avoid a hard coded
> sleep in the test).
Probably due to DAD. By disabling DAD, you should be able to use immediately the
ipv6 addrs.
Regards,
Nicolas
next prev parent reply other threads:[~2017-11-16 9:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20171109203841.28856-1-dan.rue@linaro.org>
2017-11-15 19:04 ` [RFC] [PATCH] netns: Fix race in virtual interface bringup Dan Rue
2017-11-16 9:56 ` Nicolas Dichtel [this message]
2017-11-21 21:12 ` [LTP] " Dan Rue
[not found] ` <CAEemH2eiHo8EfyMqVhS=iee8Hfxw7_ygeKtGHBo_AFGW1QEYGw@mail.gmail.com>
[not found] ` <2c722239-8e24-9796-a022-03b0c423f3b8@oracle.com>
2017-11-17 22:29 ` Dan Rue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9276a9b-16f4-338f-e51f-abebc4181fed@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=ltp@lists.linux.it \
--cc=mmarhefk@redhat.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox