diff options
| author | Nir Dotan <[email protected]> | 2018-12-10 07:11:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-12-11 23:01:33 -0800 |
| commit | d7263ab35be25505ab57ebecd93cbc5dba8be717 (patch) | |
| tree | ea0041c7361ccfbefe956797f90e967435cc727d /tools/perf/scripts/python/stackcollapse.py | |
| parent | c20580c21f80d676f6e128eea4dc482c4e51b265 (diff) | |
mlxsw: spectrum_acl: Limit priority value
In Spectrum-2, higher priority value wins and priority valid values are in
the range of {1,cap_kvd_size-1}. mlxsw_sp_acl_tcam_priority_get converts
from lower-bound priorities alike tc flower to Spectrum-2 HW range. Up
until now tc flower did not provide priority 0 or reached the maximal
value, however multicast routing does provide priority 0.
Therefore, Change mlxsw_sp_acl_tcam_priority_get to verify priority is in
the correct range. Make sure priority is never set to zero and never
exceeds the maximal allowed value.
Signed-off-by: Nir Dotan <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions