Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Merge branch 'mlxsw-adjust-qos-tests-for-spectrum-4-testing'
Browse files Browse the repository at this point in the history
Petr Machata says:

====================
mlxsw: Adjust QOS tests for Spectrum-4 testing

Amit writes:

Quality Of Service tests create congestion and verify the switch behavior.
To create congestion, they need to have more traffic than the port can
handle, so some of them force 1Gbps speed.

The tests assume that 1Gbps speed is supported. Spectrum-4 ASIC will not
support this speed in all ports, so to be able to run QOS tests there,
some adjustments are required.

Patch set overview:
Patch #1 adjusts qos_ets_strict, qos_mc_aware and sch_ets tests.
Patch #2 adjusts RED tests.
Patch #3 extends devlink_lib to support querying maximum pool size.
Patch #4 adds a test which can be used instead of qos_burst and do not
assume that 1Gbps speed is supported.
Patch #5 removes qos_burst test.
====================

Link: https://lore.kernel.org/r/cover.1663152826.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
kuba-moo committed Sep 20, 2022
2 parents 2dc81a0 + 72981ef commit 4e23096
Show file tree
Hide file tree
Showing 10 changed files with 332 additions and 509 deletions.
14 changes: 14 additions & 0 deletions tools/testing/selftests/drivers/net/mlxsw/mlxsw_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ mlxsw_only_on_spectrum()

return 1
}

mlxsw_max_descriptors_get()
{
local spectrum_rev=$MLXSW_SPECTRUM_REV

case $spectrum_rev in
1) echo 81920 ;;
2) echo 136960 ;;
3) echo 204800 ;;
4) echo 220000 ;;
*) echo "Unknown max descriptors for chip revision." > /dev/stderr
return 1 ;;
esac
}
Loading

0 comments on commit 4e23096

Please sign in to comment.