From: David S. Miller Date: Wed, 18 Mar 2020 23:46:20 +0000 (-0700) Subject: Merge branch 'mlxsw-spectrum_cnt-Expose-counter-resources' X-Git-Tag: v5.7-rc1~146^2~133 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd13f4dfc02d46a46e79bced579c8ccf78c9cc9b;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'mlxsw-spectrum_cnt-Expose-counter-resources' Ido Schimmel says: ==================== mlxsw: spectrum_cnt: Expose counter resources Jiri says: Capacity and utilization of existing flow and RIF counters are currently unavailable to be seen by the user. Use the existing devlink resources API to expose the information: $ sudo devlink resource show pci/0000:00:10.0 -v pci/0000:00:10.0: name kvd resource_path /kvd size 524288 unit entry dpipe_tables none name span_agents resource_path /span_agents size 8 occ 0 unit entry dpipe_tables none name counters resource_path /counters size 79872 occ 44 unit entry dpipe_tables none resources: name flow resource_path /counters/flow size 61440 occ 4 unit entry dpipe_tables none name rif resource_path /counters/rif size 18432 occ 40 unit entry dpipe_tables none ==================== Signed-off-by: David S. Miller --- dd13f4dfc02d46a46e79bced579c8ccf78c9cc9b