commit | 2d0ed39fbdee64835dc710b4ee3897f2bb9f8cf4 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Thu Apr 14 18:19:30 2016 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 14 16:22:06 2016 -0400 |
tree | c72e8d90ee43bd977cf500750f5059adc6524400 | |
parent | caf7297e7ab5f8aa9d482200748a066adbfa5775 [diff] |
mlxsw: spectrum_buffers: Implement occupancy monitoring Implement occupancy API introduced in devlink and mlxsw core. This is done by accessing SBPM register for Port-Pool and SBSR for Port-TC current and max occupancy values. Max clear is implemented using the same registers. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>