Skip to content

Commit 2b77958

Browse files
Nogah Frankeldavem330
authored andcommitted
mlxsw: resources: Add max cpu policers resource
Add a new resource to resources query: max cpu policers which tells us how many policers can be used to limit the data rate to the cpu port. Signed-off-by: Nogah Frankel <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 117b0da commit 2b77958

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/resources.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ enum mlxsw_res_id {
4747
MLXSW_RES_ID_MAX_SYSTEM_PORT,
4848
MLXSW_RES_ID_MAX_LAG,
4949
MLXSW_RES_ID_MAX_LAG_MEMBERS,
50+
MLXSW_RES_ID_MAX_CPU_POLICERS,
5051
MLXSW_RES_ID_MAX_VRS,
5152
MLXSW_RES_ID_MAX_RIFS,
5253

@@ -69,6 +70,7 @@ static u16 mlxsw_res_ids[] = {
6970
[MLXSW_RES_ID_MAX_SYSTEM_PORT] = 0x2502,
7071
[MLXSW_RES_ID_MAX_LAG] = 0x2520,
7172
[MLXSW_RES_ID_MAX_LAG_MEMBERS] = 0x2521,
73+
[MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13,
7274
[MLXSW_RES_ID_MAX_VRS] = 0x2C01,
7375
[MLXSW_RES_ID_MAX_RIFS] = 0x2C02,
7476
};

0 commit comments

Comments
 (0)