]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: devlink: extend port attrs for switch ID
authorJiri Pirko <jiri@mellanox.com>
Wed, 3 Apr 2019 12:24:16 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:42:36 +0000 (17:42 -0700)
commitbec5267cded268acdf679b651778c300d204e9f2
treee989dbccbf7f15c8fe62364777954597642cd5c4
parent407dd706fb5245c138f3a972f8aaa1c8a09a574c
net: devlink: extend port attrs for switch ID

Extend devlink_port_attrs_set() to pass switch ID for ports which are
part of switch and store it in port attrs. For other ports, this is
NULL.

Note that this allows the driver to group devlink ports into one or more
switches according to the actual topology.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c
drivers/net/ethernet/mellanox/mlxsw/core.c
drivers/net/ethernet/netronome/nfp/nfp_devlink.c
include/net/devlink.h
net/core/devlink.c
net/dsa/dsa2.c