This patchset mainly adds new forwarding test cases and performs small changes in existing infrastructure.
Patches #1-#3 add new test cases for multicast RPF check, PCP and VLAN matching using flower and tc VLAN modify action. The rest of the patches are from Petr who says: In patches #4 and #5, devlink_lib.sh is fixed to first not cause double inclusion of lib.sh, and then to deduce the device name in a simpler way. In patch #6, helpers for dealing with shared buffer configuration are added to devlink_lib.sh. In patch #7, MC-awareness test is fixed to configure shared buffers explicitly. In patch #8, several helpers are extracted from the MC-awareness test and put into a new mlxsw-specific library, qos_lib.sh. In patch #9, a new test is added which checks configuration of strictly-prioritized streams. Amit Cohen (1): selftests: forwarding: Add PCP match and VLAN match tests Danielle Ratson (1): selftests: forwarding: Test action VLAN modify Ido Schimmel (1): selftests: forwarding: Add reverse path forwarding (RPF) test cases Petr Machata (6): selftests: forwarding: devlink_lib: Avoid double sourcing of lib.sh selftests: forwarding: devlink_lib: Simplify deduction of DEVLINK_DEV selftests: forwarding: devlink_lib: Add shared buffer helpers selftests: mlxsw: qos_mc_aware: Configure shared buffers selftests: mlxsw: Add qos_lib.sh selftests: mlxsw: Add a new test for strict priority .../drivers/net/mlxsw/qos_ets_strict.sh | 311 ++++++++++++++++++ .../selftests/drivers/net/mlxsw/qos_lib.sh | 98 ++++++ .../drivers/net/mlxsw/qos_mc_aware.sh | 122 ++----- .../drivers/net/mlxsw/spectrum-2/tc_flower.sh | 1 + .../net/mlxsw/spectrum/devlink_resources.sh | 3 + .../net/mlxsw/spectrum/resource_scale.sh | 5 +- .../selftests/net/forwarding/devlink_lib.sh | 110 ++++++- .../net/forwarding/router_multicast.sh | 107 +++++- .../selftests/net/forwarding/tc_flower.sh | 59 +++- .../net/forwarding/tc_vlan_modify.sh | 164 +++++++++ 10 files changed, 872 insertions(+), 108 deletions(-) create mode 100755 tools/testing/selftests/drivers/net/mlxsw/qos_ets_strict.sh create mode 100644 tools/testing/selftests/drivers/net/mlxsw/qos_lib.sh create mode 100755 tools/testing/selftests/net/forwarding/tc_vlan_modify.sh -- 2.20.1