selftests: router_bridge: Add remastering tests
authorPetr Machata <petrm@nvidia.com>
Mon, 31 Jul 2023 15:47:15 +0000 (17:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Aug 2023 08:18:18 +0000 (09:18 +0100)
commiteb1388553ef4f30d75ed7d5b8eb55ed849f685b5
treeaf44cdc0bc1ee91257c528ef3e444934788e2403
parent10857e6779054f79a7569eaaaa85dfa71b73acc1
selftests: router_bridge: Add remastering tests

Add two tests to deslave a port from and reenslave to a bridge. This should
retain the ability of the system to forward traffic, but on an offloading
driver that is sensitive to ordering of operations, it might not.

The first test does this configuration in a way that relies on
vlan_default_pvid to assign the PVID. The second test disables that
autoconfiguration and configures PVID by hand in a separate step.

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/router_bridge.sh