aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-05-26 02:05:51 +0300
committerDavid S. Miller <davem@davemloft.net>2020-05-26 20:33:58 -0700
commitb87bde80daf77649efba90ef0b1079b84be92d39 (patch)
treec3c6b78039ee39dd72f696954bf1349dab87bb9e /tools/perf/scripts/python/exported-sql-viewer.py
parent03cb0ce0ddc8c00b7c4c5becff7fb7cf44b00a91 (diff)
mlxsw: spectrum_trap: Do not hard code "thin" policer identifier
As explained in commit e612523041ab ("mlxsw: spectrum_trap: Introduce dummy group with thin policer"), the purpose of the "thin" policer is to pass as less packets as possible to the CPU. The identifier of this policer is currently set according to the maximum number of used trap groups, but this is fragile: On Spectrum-1 the maximum number of policers is less than the maximum number of trap groups, which might result in an invalid policer identifier in case the number of used trap groups grows beyond the policer limit. Solve this by dynamically allocating the policer identifier. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions