]> git.itanic.dy.fi Git - linux-stable/commit
selftests: mlxsw: Test port range registers' occupancy
authorIdo Schimmel <idosch@nvidia.com>
Tue, 11 Jul 2023 16:44:02 +0000 (18:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Jul 2023 23:57:18 +0000 (16:57 -0700)
commit0a1a818d8a1c13375219d358de7e0e28e308d6a5
tree4a1d8e67a235230ddf7a944372ee0841955cce0f
parent45c5a384765bb879f8a07e0056c0885771124271
selftests: mlxsw: Test port range registers' occupancy

Test that filters that match on the same port range, but with different
combination of IPv4/IPv6 and TCP/UDP all use the same port range
register by observing port range registers' occupancy via
devlink-resource.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/0a2eb63b234fb062ff011e80231868cc80000c81.1689092769.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/mlxsw/port_range_occ.sh [new file with mode: 0755]