selftests: forwarding: mirror_gre_bridge_1q_lag: Flush neighbors
authorPetr Machata <petrm@mellanox.com>
Thu, 31 Jan 2019 22:35:22 +0000 (22:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 23:26:36 +0000 (15:26 -0800)
commita99dd629e87933e409d05045707ace3b654912d5
treeb81830a6eeb5a066f10044895b4d92320a9c15ec
parentccdb66dd2f1e113ad5942b3cc22c9484cd7c5101
selftests: forwarding: mirror_gre_bridge_1q_lag: Flush neighbors

After one LAG slave is downed and another upped, it takes a while for
the neighbor on a bridge to time out and get renegotiated. The test does
prompt update of FDB entries by arpinging. But because the neighbor
still references another address, offloading is not possible, and some
packets may end up not being mirrored.

To force the neighbor renegotiation, simply flush the neighbor table at
the bridge.

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