mbox series

[net-next,0/5] mv88e6xxx ATU occupancy as devlink resource

Message ID 20191105001301.27966-1-andrew@lunn.ch
Headers show
Series mv88e6xxx ATU occupancy as devlink resource | expand

Message

Andrew Lunn Nov. 5, 2019, 12:12 a.m. UTC
This patchset add generic support to DSA for devlink resources. The
Marvell switch Address Translation Unit occupancy is then exported as
a resource. In order to do this, the number of ATU entries is added to
the per switch info structure. Helpers are added, and then the
resource itself is then added.

Andrew Lunn (5):
  net: dsa: Add support for devlink resources
  net: dsa: mv88e6xxx: Add number of MACs in the ATU
  net: dsa: mv88e6xxx: global2: Expose ATU stats register
  net: dsa: mv88e6xxx: global1_atu: Add helper for get next
  net: dsa: mv88e6xxx: Add ATU occupancy via devlink resources

 drivers/net/dsa/mv88e6xxx/chip.c        | 215 +++++++++++++++++++++++-
 drivers/net/dsa/mv88e6xxx/chip.h        |   6 +
 drivers/net/dsa/mv88e6xxx/global1.h     |   1 +
 drivers/net/dsa/mv88e6xxx/global1_atu.c |   5 +
 drivers/net/dsa/mv88e6xxx/global2.c     |  13 ++
 drivers/net/dsa/mv88e6xxx/global2.h     |  24 ++-
 include/net/dsa.h                       |  16 ++
 net/dsa/dsa.c                           |  37 ++++
 8 files changed, 312 insertions(+), 5 deletions(-)

Comments

David Miller Nov. 6, 2019, 2:10 a.m. UTC | #1
From: Andrew Lunn <andrew@lunn.ch>
Date: Tue,  5 Nov 2019 01:12:56 +0100

> This patchset add generic support to DSA for devlink resources. The
> Marvell switch Address Translation Unit occupancy is then exported as
> a resource. In order to do this, the number of ATU entries is added to
> the per switch info structure. Helpers are added, and then the
> resource itself is then added.

Series applied, thanks Andrew.
Andrew Lunn Nov. 6, 2019, 1:55 p.m. UTC | #2
On Tue, Nov 05, 2019 at 06:10:01PM -0800, David Miller wrote:
> From: Andrew Lunn <andrew@lunn.ch>
> Date: Tue,  5 Nov 2019 01:12:56 +0100
> 
> > This patchset add generic support to DSA for devlink resources. The
> > Marvell switch Address Translation Unit occupancy is then exported as
> > a resource. In order to do this, the number of ATU entries is added to
> > the per switch info structure. Helpers are added, and then the
> > resource itself is then added.
> 
> Series applied, thanks Andrew.

Hi David

I will send a fix for the build error ASAP. It should not affect
normal builds, just random configs.

       Andrew