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)
commitb837585985386e05478cb17868d23a6fa87c4f8d
treec14d4eff80b0ebbda5da6cde9151081be478346b
parentfc9f50d5b366cd9f35bdee22fe3f8d77833cb1d8
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