Skip to content

Commit

Permalink
selftests: mlxsw: Test egress sampling limitation on Spectrum-1 only
Browse files Browse the repository at this point in the history
Make sure egress sampling configuration only fails on Spectrum-1, given
that mlxsw now supports it on Spectrum-{2,3}.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ido Schimmel authored and David S. Miller committed Mar 16, 2021
1 parent f0b692c commit 0f967d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ NUM_NETIFS=2

source $lib_dir/tc_common.sh
source $lib_dir/lib.sh
source $lib_dir/devlink_lib.sh

switch_create()
{
Expand Down Expand Up @@ -166,7 +167,8 @@ matchall_sample_egress_test()
RET=0

# It is forbidden in mlxsw driver to have matchall with sample action
# bound on egress
# bound on egress. Spectrum-1 specific restriction
[[ "$DEVLINK_VIDDID" != "15b3:cb84" ]] && return

tc qdisc add dev $swp1 clsact

Expand Down

0 comments on commit 0f967d9

Please sign in to comment.