diff options
author | Nir Dotan <nird@mellanox.com> | 2018-12-10 02:11:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-12 02:01:33 -0500 |
commit | d7263ab35be25505ab57ebecd93cbc5dba8be717 (patch) | |
tree | ea0041c7361ccfbefe956797f90e967435cc727d /net/switchdev/switchdev.c | |
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 <nird@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions