]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: add a no_forwarding.sh test
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 22 Apr 2022 10:15:02 +0000 (13:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2022 11:18:16 +0000 (12:18 +0100)
commitc4b992e95d33ab1fc2025daf0d272bda051de0ad
tree6fc01344e2d5a4ea44ad270eec81099fa4a62ecf
parentc8d3abe9c7ac7b42da1a8dbc7f95e754ab7cc878
selftests: forwarding: add a no_forwarding.sh test

Bombard a standalone switch port with various kinds of traffic to ensure
it is really standalone and doesn't leak packets to other switch ports.
Also check for switch ports in different bridges, and switch ports in a
VLAN-aware bridge but having different pvids. No forwarding should take
place in either case.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/no_forwarding.sh [new file with mode: 0755]