selftests: router_bridge_pvid_vlan_upper: Add a new selftest
authorPetr Machata <petrm@nvidia.com>
Thu, 13 Jul 2023 16:15:34 +0000 (18:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 09:20:15 +0000 (10:20 +0100)
commit9cbb3da4f4f7c2851df2ed3548263718e99c281a
tree0cee867a410c5926d0d075a732ad869522236333
parentb0307b77265bc8e2f4d2ecea3225ed2de8565a70
selftests: router_bridge_pvid_vlan_upper: Add a new selftest

This tests whether addition and deletion of a VLAN upper that coincides
with the current PVID setting throws off forwarding.

This selftests is specifically geared towards offloading drivers. In
particular, mlxsw used to fail this selftest, and an earlier patch in this
patchset fixes the issue. However, there's nothing HW-specific in the test
itself (it absolutely is supposed to pass on SW datapath), and therefore it
is put into the generic forwarding directory.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/Makefile
tools/testing/selftests/net/forwarding/router_bridge_pvid_vlan_upper.sh [new file with mode: 0755]