commit | e0c69ca7dfbbaaa6f9167c65f5cde740557aaed9 | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Tue Nov 05 01:13:01 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 05 18:09:45 2019 -0800 |
tree | fbbbb6bb8ec7b0e004c97febde2f168ff9e88c83 | |
parent | c5f299d592617847124900d75e5765cb0368ffae [diff] |
net: dsa: mv88e6xxx: Add ATU occupancy via devlink resources The ATU can report how many entries it contains. It does this per bin, there being 4 bins in total. Export the ATU as a devlink resource, and provide a method the needed callback to get the resource occupancy. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>