selftests: forwarding: Add a test for flooded traffic
authorIdo Schimmel <idosch@mellanox.com>
Wed, 28 Feb 2018 10:25:08 +0000 (12:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:25:47 +0000 (12:25 -0500)
commit236dd50bf67a2ab5fd39d82e712d1fafdd4c602d
treee67185eafbe978e0f93ce860758d553d0ea67bfc
parentd4deb01467ec9ed33fe0f4b4fa4632c94f2dd8c9
selftests: forwarding: Add a test for flooded traffic

Add test cases for unknown unicast and unregistered multicast flooding.

For each traffic type, turn off flooding on one bridged port and inject
a packet of the specified type through the second bridged port. Make
sure the packet was not received by checking the ACL counters on the
other end. Later, turn on flooding and make sure the packet was
received.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/bridge_vlan_aware.sh
tools/testing/selftests/net/forwarding/lib.sh