Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Andrew Lunn
On Sun, Sep 20, 2020 at 11:33:41PM +, Vladimir Oltean wrote: > On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: > > > > DSA only instantiates devlink ports for switch ports which are used. > > For this hardware, only 4 user ports and the CPU port have devlink > > ports, which explai

Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Florian Fainelli
On 9/20/2020 4:33 PM, Vladimir Oltean wrote: On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: DSA only instantiates devlink ports for switch ports which are used. For this hardware, only 4 user ports and the CPU port have devlink ports, which explains the discontinuous port regio

Re: [PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:28PM +0200, Andrew Lunn wrote: > > DSA only instantiates devlink ports for switch ports which are used. > For this hardware, only 4 user ports and the CPU port have devlink > ports, which explains the discontinuous port regions. This is not so much a choice, as it is

[PATCH net-next RFC v1 0/4] Add per port devlink regions

2020-09-19 Thread Andrew Lunn
This patchset extends devlink regions to support per port regions, and them makes use of them to support the ports of the mv88e6xxx switches. root@rap:~# devlink region show mdio_bus/gpio-0:00/global1: size 64 snapshot [] mdio_bus/gpio-0:00/global2: size 64 snapshot [] mdio_bus/gpio-0:00/atu: size