selftests: forwarding: mirror_gre_vlan_bridge_1q: Fix roaming test
authorPetr Machata <petrm@mellanox.com>
Thu, 31 Jan 2019 22:35:21 +0000 (22:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 23:26:36 +0000 (15:26 -0800)
commitccdb66dd2f1e113ad5942b3cc22c9484cd7c5101
tree7174bf02af291a1eb541d628f00e6c87f04fa4da
parent35036b0b09c4311e2879a3101cc61ccf6fd76ddf
selftests: forwarding: mirror_gre_vlan_bridge_1q: Fix roaming test

ARP or ND traffic can cause spurious migration of FDB back to $swp3.
Mirroring is then updated in accordance with the change, and mirrored
packets are seen at h3, causing a failure.

Detect the case of this spurious roaming, and retry the test.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/mirror_gre_vlan_bridge_1q.sh