projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117b0da
)
mlxsw: resources: Add max cpu policers resource
author
Nogah Frankel
<
[email protected]
>
Fri, 25 Nov 2016 09:33:45 +0000
(10:33 +0100)
committer
David S. Miller
<
[email protected]
>
Sat, 26 Nov 2016 02:22:14 +0000
(21:22 -0500)
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]
>
drivers/net/ethernet/mellanox/mlxsw/resources.h
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/resources.h
b/drivers/net/ethernet/mellanox/mlxsw/resources.h
index 07b09f8caabd71fa4e692975bee758397d21f500..1c2119b63258abc7ba2ffed4bb3546ae32ef032e 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/resources.h
+++ b/
drivers/net/ethernet/mellanox/mlxsw/resources.h
@@
-47,6
+47,7
@@
enum mlxsw_res_id {
MLXSW_RES_ID_MAX_SYSTEM_PORT,
MLXSW_RES_ID_MAX_LAG,
MLXSW_RES_ID_MAX_LAG_MEMBERS,
+ MLXSW_RES_ID_MAX_CPU_POLICERS,
MLXSW_RES_ID_MAX_VRS,
MLXSW_RES_ID_MAX_RIFS,
@@
-69,6
+70,7
@@
static u16 mlxsw_res_ids[] = {
[MLXSW_RES_ID_MAX_SYSTEM_PORT] = 0x2502,
[MLXSW_RES_ID_MAX_LAG] = 0x2520,
[MLXSW_RES_ID_MAX_LAG_MEMBERS] = 0x2521,
+ [MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13,
[MLXSW_RES_ID_MAX_VRS] = 0x2C01,
[MLXSW_RES_ID_MAX_RIFS] = 0x2C02,
};