OSDN Git Service

net: dsa: mv88e6xxx: Add ATU occupancy via devlink resources
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 Nov 2019 00:13:01 +0000 (01:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:09:45 +0000 (18:09 -0800)
commite0c69ca7dfbbaaa6f9167c65f5cde740557aaed9
treefbbbb6bb8ec7b0e004c97febde2f168ff9e88c83
parentc5f299d592617847124900d75e5765cb0368ffae
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>
drivers/net/dsa/mv88e6xxx/chip.c