Commit 4d21ed2e authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller

selftests: spectrum-2: Adjust tc_flower_scale limit according to current counter count

With the change that made the code to query counter bank size from device
instead of using hard-coded value, the number of available counters
changed for Spectrum-2. Adjust the limit in the selftests.
Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac5de9a2
...@@ -8,9 +8,9 @@ tc_flower_get_target() ...@@ -8,9 +8,9 @@ tc_flower_get_target()
# The driver associates a counter with each tc filter, which means the # The driver associates a counter with each tc filter, which means the
# number of supported filters is bounded by the number of available # number of supported filters is bounded by the number of available
# counters. # counters.
# Currently, the driver supports 12K (12,288) flow counters and six of # Currently, the driver supports 30K (30,720) flow counters and six of
# these are used for multicast routing. # these are used for multicast routing.
local target=12282 local target=30714
if ((! should_fail)); then if ((! should_fail)); then
echo $target echo $target
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment