selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests
authorPetr Machata <petrm@mellanox.com>
Thu, 31 May 2018 17:52:42 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 18:11:03 +0000 (14:11 -0400)
commit9c7c8a82442c85bcb70abf572127343dcc7dd038
treee22076b7dabbc71d9c881dfeb7a1a4a5ee124c6a
parent683680165c5b71ae6abf6745fed6a29a683813e3
selftests: forwarding: mirror_gre_vlan_bridge_1q: Add more tests

Offloading of mirror-to-gretap in mlxsw is tricky especially in cases
when the gretap underlay involves bridges. Add more tests that exercise
the bridge handling code:

- forbidden_egress tests that check vlan removal on bridge port in the
  underlay packet path
- untagged_egress tests that similarly check "egress untagged"
- fdb_roaming tests that check whether learning FDB on a different port
  is reflected
- stp tests for handling port STP status of bridge egress port

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