]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Delete IPv6 address at the end
authorIdo Schimmel <idosch@mellanox.com>
Mon, 9 Dec 2019 06:56:34 +0000 (08:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Dec 2019 18:19:45 +0000 (10:19 -0800)
commit0ff1d51366d5b462167bd929ffce9312f99f75ba
treea770e476cebe7536102844a44c647b0517501b98
parentc167ab69c5219895787e3fe74fec390fb56d3b0f
selftests: forwarding: Delete IPv6 address at the end

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: c343ede6b962 ("selftests: forwarding: Test routed bridge interface")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/router_bridge_vlan.sh