mbox series

[net-next,v2,0/7] net: dsa: mv88e6xxx: Add devlink regions support

Message ID 20200908005155.3267736-1-andrew@lunn.ch
Headers show
Series net: dsa: mv88e6xxx: Add devlink regions support | expand

Message

Andrew Lunn Sept. 8, 2020, 12:51 a.m. UTC
Make use of devlink regions to allow read access to some of the
internal of the switches. The switch itself will never trigger a
region snapshot, it is assumed it is performed from user space as
needed.

v2:
Remove left of debug print
Comment ATU format is generic to mv88e6xxx
Combine declaration and the assignment on a single line.

Andrew Lunn (7):
  net: dsa: Add helper to convert from devlink to ds
  net: dsa: Add devlink regions support to DSA
  net: dsa: mv88e6xxx: Move devlink code into its own file
  net: dsa: mv88e6xxx: Create helper for FIDs in use
  net: dsa: mv88e6xxx: Add devlink regions
  net: dsa: wire up devlink info get
  net: dsa: mv88e6xxx: Implement devlink info get callback

 drivers/net/dsa/mv88e6xxx/Makefile  |   1 +
 drivers/net/dsa/mv88e6xxx/chip.c    | 290 ++----------
 drivers/net/dsa/mv88e6xxx/chip.h    |  14 +
 drivers/net/dsa/mv88e6xxx/devlink.c | 686 ++++++++++++++++++++++++++++
 drivers/net/dsa/mv88e6xxx/devlink.h |  21 +
 include/net/dsa.h                   |  13 +-
 net/dsa/dsa.c                       |  36 +-
 net/dsa/dsa2.c                      |  19 +-
 8 files changed, 807 insertions(+), 273 deletions(-)
 create mode 100644 drivers/net/dsa/mv88e6xxx/devlink.c
 create mode 100644 drivers/net/dsa/mv88e6xxx/devlink.h

Comments

Florian Fainelli Sept. 8, 2020, 3:24 a.m. UTC | #1
On 9/7/2020 5:51 PM, Andrew Lunn wrote:
> Make use of devlink regions to allow read access to some of the
> internal of the switches. The switch itself will never trigger a
> region snapshot, it is assumed it is performed from user space as
> needed.
> 
> v2:
> Remove left of debug print
> Comment ATU format is generic to mv88e6xxx
> Combine declaration and the assignment on a single line.

Andrew, can you run scripts/get_maintainters.pl for your patch 
submissions and copy the various DSA maintainers as Vladimir who gives 
valuable feedback? Thanks

> 
> Andrew Lunn (7):
>    net: dsa: Add helper to convert from devlink to ds
>    net: dsa: Add devlink regions support to DSA
>    net: dsa: mv88e6xxx: Move devlink code into its own file
>    net: dsa: mv88e6xxx: Create helper for FIDs in use
>    net: dsa: mv88e6xxx: Add devlink regions
>    net: dsa: wire up devlink info get
>    net: dsa: mv88e6xxx: Implement devlink info get callback
> 
>   drivers/net/dsa/mv88e6xxx/Makefile  |   1 +
>   drivers/net/dsa/mv88e6xxx/chip.c    | 290 ++----------
>   drivers/net/dsa/mv88e6xxx/chip.h    |  14 +
>   drivers/net/dsa/mv88e6xxx/devlink.c | 686 ++++++++++++++++++++++++++++
>   drivers/net/dsa/mv88e6xxx/devlink.h |  21 +
>   include/net/dsa.h                   |  13 +-
>   net/dsa/dsa.c                       |  36 +-
>   net/dsa/dsa2.c                      |  19 +-
>   8 files changed, 807 insertions(+), 273 deletions(-)
>   create mode 100644 drivers/net/dsa/mv88e6xxx/devlink.c
>   create mode 100644 drivers/net/dsa/mv88e6xxx/devlink.h
>