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)
commit9de00f368c82be7bff15d72e588b394578b1b46c
treee67185eafbe978e0f93ce860758d553d0ea67bfc
parentafa91602ccbbd131a6885802856fd90b76a67dd6
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