mlxsw: resources: Add Spectrum-2 maximum large key ID resource
Add a resource to make sure we do not exceed the maximum number of supported large key IDs in a region. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8c0d1cdd05
commit
541e249cdc
|
@ -65,6 +65,7 @@ enum mlxsw_res_id {
|
||||||
MLXSW_RES_ID_ACL_FLEX_KEYS,
|
MLXSW_RES_ID_ACL_FLEX_KEYS,
|
||||||
MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE,
|
MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE,
|
||||||
MLXSW_RES_ID_ACL_ACTIONS_PER_SET,
|
MLXSW_RES_ID_ACL_ACTIONS_PER_SET,
|
||||||
|
MLXSW_RES_ID_ACL_MAX_LARGE_KEY_ID,
|
||||||
MLXSW_RES_ID_MAX_CPU_POLICERS,
|
MLXSW_RES_ID_MAX_CPU_POLICERS,
|
||||||
MLXSW_RES_ID_MAX_VRS,
|
MLXSW_RES_ID_MAX_VRS,
|
||||||
MLXSW_RES_ID_MAX_RIFS,
|
MLXSW_RES_ID_MAX_RIFS,
|
||||||
|
@ -108,6 +109,7 @@ static u16 mlxsw_res_ids[] = {
|
||||||
[MLXSW_RES_ID_ACL_FLEX_KEYS] = 0x2910,
|
[MLXSW_RES_ID_ACL_FLEX_KEYS] = 0x2910,
|
||||||
[MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE] = 0x2911,
|
[MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE] = 0x2911,
|
||||||
[MLXSW_RES_ID_ACL_ACTIONS_PER_SET] = 0x2912,
|
[MLXSW_RES_ID_ACL_ACTIONS_PER_SET] = 0x2912,
|
||||||
|
[MLXSW_RES_ID_ACL_MAX_LARGE_KEY_ID] = 0x2942,
|
||||||
[MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13,
|
[MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13,
|
||||||
[MLXSW_RES_ID_MAX_VRS] = 0x2C01,
|
[MLXSW_RES_ID_MAX_VRS] = 0x2C01,
|
||||||
[MLXSW_RES_ID_MAX_RIFS] = 0x2C02,
|
[MLXSW_RES_ID_MAX_RIFS] = 0x2C02,
|
||||||
|
|
Loading…
Reference in a new issue