]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: devlink: Add support for port regions
authorAndrew Lunn <andrew@lunn.ch>
Sun, 4 Oct 2020 16:12:54 +0000 (18:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Oct 2020 21:38:53 +0000 (14:38 -0700)
commit544e7c33ec2f8077685c254f5e3b03a85c0e62eb
tree269ed65aa9ca47c2ea5a0fd84bb98c3358ea9417
parent3122433eb533aac7d08302ee4b3bd3adfcd280d3
net: devlink: Add support for port regions

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.

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Tested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c