OSDN Git Service

net: dsa: mv88e6xxx: Add number of MACs in the ATU
authorAndrew Lunn <andrew@lunn.ch>
Tue, 5 Nov 2019 00:12:58 +0000 (01:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:09:45 +0000 (18:09 -0800)
commitd9ea56206c4df77175321874544eb4ca48c0bac8
treef0ddfd9be6d3ff1da9e666851a672dc20f693ece
parent5cd73fbd78794d9c9c4e7a61dc8fa83489b43d03
net: dsa: mv88e6xxx: Add number of MACs in the ATU

For each supported switch, add an entry to the info structure for the
number of MACs which can be stored in the ATU. This will later be used
to export the ATU as a devlink resource, and indicate its occupancy,
how full the ATU is.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h