]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: add port to line card relationship set
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:28 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commitf408664667520565c4d6d3c54ef5da0b1767e13b
treec14d4eff80b0ebbda5da6cde9151081be478346b
parentb447522505f10c21c222a5939324f9133a6fc171
devlink: add port to line card relationship set

In order to properly inform user about relationship between port and
line card, introduce a driver API to set line card for a port. Use this
information to extend port devlink netlink message by line card index
and also include the line card index into phys_port_name and by that
into a netdevice name.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c