mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
Merge branch 'selftests-mlxsw-add-ordering-tests-for-unified-bridge-model'
Petr Machata says:
====================
selftests: mlxsw: Add ordering tests for unified bridge model
Amit Cohen writes:
Commit 798661c736 ("Merge branch 'mlxsw-unified-bridge-conversion-part-6'")
converted mlxsw driver to use unified bridge model. In the legacy model,
when a RIF was created / destroyed, it was firmware's responsibility to
update it in the relevant FID classification records. In the unified bridge
model, this responsibility moved to software.
This set adds tests to check the order of configuration for the following
classifications:
1. {Port, VID} -> FID
2. VID -> FID
3. VNI -> FID (after decapsulation)
In addition, in the legacy model, software is responsible to update a
table which is used to determine the packet's egress VID. Add a test to
check that the order of configuration does not impact switch behavior.
See more details in the commit messages.
Note that the tests supposed to pass also using the legacy model, they
are added now as with the new model they test the driver and not the
firmware.
Patch set overview:
Patch #1 adds test for {Port, VID} -> FID
Patch #2 adds test for VID -> FID
Patch #3 adds test for VNI -> FID
Patch #4 adds test for egress VID classification
====================
Link: https://lore.kernel.org/r/cover.1660747162.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
commit
bafe1adb2f
4 changed files with 1112 additions and 0 deletions
273
tools/testing/selftests/drivers/net/mlxsw/egress_vid_classification.sh
Executable file
273
tools/testing/selftests/drivers/net/mlxsw/egress_vid_classification.sh
Executable file
264
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_1d.sh
Executable file
264
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_1d.sh
Executable file
264
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_1q.sh
Executable file
264
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_1q.sh
Executable file
311
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_vxlan.sh
Executable file
311
tools/testing/selftests/drivers/net/mlxsw/ingress_rif_conf_vxlan.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue