From: Ido Schimmel <idosch@idosch.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, jiri@mellanox.com, mlxsw@mellanox.com,
idosch@mellanox.com
Subject: Re: [PATCH net] selftests: forwarding: Delete IPv6 address at the end
Date: Tue, 10 Dec 2019 11:26:16 +0200 [thread overview]
Message-ID: <20191210092616.GA378338@splinter> (raw)
In-Reply-To: <20191209.102050.2106424689422479418.davem@davemloft.net>
On Mon, Dec 09, 2019 at 10:20:50AM -0800, David Miller wrote:
> From: Ido Schimmel <idosch@idosch.org>
> Date: Mon, 9 Dec 2019 08:56:34 +0200
>
> > From: Ido Schimmel <idosch@mellanox.com>
> >
> > When creating the second host in h2_create(), two addresses are assigned
> > to the interface, but only one is deleted. When running the test twice
> > in a row the following error is observed:
> >
> > $ ./router_bridge_vlan.sh
> > TEST: ping [ OK ]
> > TEST: ping6 [ OK ]
> > TEST: vlan [ OK ]
> > $ ./router_bridge_vlan.sh
> > RTNETLINK answers: File exists
> > TEST: ping [ OK ]
> > TEST: ping6 [ OK ]
> > TEST: vlan [ OK ]
> >
> > Fix this by deleting the address during cleanup.
> >
> > Fixes: 5b1e7f9ebd56 ("selftests: forwarding: Test routed bridge interface")
> > Signed-off-by: Ido Schimmel <idosch@mellanox.com>
>
> Applied, but wasn't the idea that we run these things in a separate
> network namespace so that we don't pollute the top level config even
> if the script dies mid-way or something?
Dave,
This is not the case for the forwarding tests. We use them to test both
the kernel data path (using veth pairs) and the hardware data path
(using physical loopbacks). Until recently we couldn't move the hardware
ports to a different network namespace, which is why these tests were
not written using namespaces. While using namespaces will avoid such
problems, it will also prolong the time it takes to run these tests,
given the devlink instance needs to be reloaded each time. On a normal
kernel this adds another ~5 seconds to each test. On a debug kernel (one
configuration we test) this adds another ~35 seconds.
prev parent reply other threads:[~2019-12-10 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-09 6:56 [PATCH net] selftests: forwarding: Delete IPv6 address at the end Ido Schimmel
2019-12-09 18:20 ` David Miller
2019-12-10 9:26 ` Ido Schimmel [this message]
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=20191210092616.GA378338@splinter \
--to=idosch@idosch.org \
--cc=davem@davemloft.net \
--cc=idosch@mellanox.com \
--cc=jiri@mellanox.com \
--cc=mlxsw@mellanox.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;
as well as URLs for NNTP newsgroup(s).