Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-21 Thread Vladimir Oltean
On Mon, Sep 21, 2020 at 05:02:13AM +0200, Andrew Lunn wrote: > On Mon, Sep 21, 2020 at 12:23:18AM +, Vladimir Oltean wrote: > > On Mon, Sep 21, 2020 at 02:45:39AM +0300, Vladimir Oltean wrote: > > > This looks like a simple enough solution, but am I right that old > > > kernels, which ignore th

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Andrew Lunn
On Mon, Sep 21, 2020 at 12:23:18AM +, Vladimir Oltean wrote: > On Mon, Sep 21, 2020 at 02:45:39AM +0300, Vladimir Oltean wrote: > > This looks like a simple enough solution, but am I right that old > > kernels, which ignore this new DEVLINK_ATTR_PORT_INDEX netlink > > attribute, will consequent

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Vladimir Oltean
On Mon, Sep 21, 2020 at 02:45:39AM +0300, Vladimir Oltean wrote: > This looks like a simple enough solution, but am I right that old > kernels, which ignore this new DEVLINK_ATTR_PORT_INDEX netlink > attribute, will consequently interpret any devlink command for a port as > being for a global regio

Re: [PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-20 Thread Vladimir Oltean
On Sat, Sep 19, 2020 at 04:43:29PM +0200, Andrew Lunn wrote: > Allow regions to be registered to a devlink port. The same netlink API > is used, but the port index is provided to indicate when a region is a > port region as opposed to a device region. > > Signed-off-by: Andrew Lunn > --- > inclu

[PATCH net-next RFC v1 1/4] net: devlink: Add support for port regions

2020-09-19 Thread Andrew Lunn
Allow regions to be registered to a devlink port. The same netlink API is used, but the port index is provided to indicate when a region is a port region as opposed to a device region. Signed-off-by: Andrew Lunn --- include/net/devlink.h | 27 + net/core/devlink.c| 251 +