[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190328211254.1894-1-jiri@resnulli.us>
Date: Thu, 28 Mar 2019 22:12:42 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, mlxsw@...lanox.com, idosch@...lanox.com,
jakub.kicinski@...ronome.com, f.fainelli@...il.com, andrew@...n.ch,
vivien.didelot@...il.com, michael.chan@...adcom.com
Subject: [patch net-next 00/12] net: expose switch ID via devlink
From: Jiri Pirko <jiri@...lanox.com>
To provide visibility of the ports, this patchset exposes switch ID
for devlink ports, which are part of a switch. The rest of the ports
if any (in case of sr-iov for example) do not set switch ID.
Jiri Pirko (12):
net: devlink: convert devlink_port_attrs bools to bits
net: devlink: extend port attrs for switch ID
net: devlink: introduce devlink_compat_switch_id_get() helper
mlxsw: Pass switch ID through devlink_port_attrs_set()
mlxsw: Remove ndo_get_port_parent_id implementation
bnxt: pass switch ID through devlink_port_attrs_set()
bnxt: remove ndo_get_port_parent_id implementation for physical ports
nfp: pass switch ID through devlink_port_attrs_set()
nfp: remove ndo_get_port_parent_id implementation
mlxsw: switch_ib: Pass valid HW id down to mlxsw_core_port_init()
dsa: pass switch ID through devlink_port_attrs_set()
net: devlink: add warning for ndo_get_port_parent_id set when not
needed
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 1 -
.../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 3 +-
drivers/net/ethernet/mellanox/mlxsw/core.c | 7 ++-
drivers/net/ethernet/mellanox/mlxsw/core.h | 4 +-
drivers/net/ethernet/mellanox/mlxsw/minimal.c | 17 ++-----
.../net/ethernet/mellanox/mlxsw/spectrum.c | 17 ++-----
.../net/ethernet/mellanox/mlxsw/switchib.c | 22 ++++++++-
.../net/ethernet/mellanox/mlxsw/switchx2.c | 16 +-----
.../net/ethernet/netronome/nfp/nfp_devlink.c | 5 +-
.../ethernet/netronome/nfp/nfp_net_common.c | 1 -
.../net/ethernet/netronome/nfp/nfp_net_repr.c | 1 -
drivers/net/ethernet/netronome/nfp/nfp_port.c | 16 ------
include/net/devlink.h | 19 +++++--
include/uapi/linux/devlink.h | 2 +
net/core/dev.c | 8 ++-
net/core/devlink.c | 49 ++++++++++++++++---
net/dsa/dsa2.c | 4 +-
net/dsa/slave.c | 1 -
18 files changed, 113 insertions(+), 80 deletions(-)
--
2.17.2
Powered by blists - more mailing lists