On Tue, Jun 17, 2025 at 08:59:30AM +0200, Eric Woudstra wrote:
Add a script to test various scenarios where a bridge is involved in the fastpath. It runs tests in the forward path, and also in a bridged path.
The setup is similar to a basic home router with multiple lan ports.
It uses 3 pairs of veth-devices. Each or all pairs can be replaced by a pair of real interfaces, interconnected by wire. This is necessary to test the behavior when dealing with dsa ports, foreign (dsa) ports and switchdev userports that support SWITCHDEV_OBJ_ID_PORT_VLAN.
See the head of the script for a detailed description.
Run without arguments to perform all tests on veth-devices.
Signed-off-by: Eric Woudstra ericwouds@gmail.com
Hi Eric,
If this proposal proceeds could you please consider running shellcheck over the script and address the warnings it flags produces.
A shellcheck test was recently added to NIPA and we'd like to at least minimise adding new warnings to the tree.