netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch net-next RFC 0/8] net: expose switch ID via devlink
@ 2019-03-01 16:05 Jiri Pirko
  2019-03-01 16:05 ` [patch net-next RFC 1/8] net: devlink: convert devlink_port_attrs bools to bits Jiri Pirko
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Jiri Pirko @ 2019-03-01 16:05 UTC (permalink / raw)
  To: netdev
  Cc: davem, mlxsw, idosch, jakub.kicinski, dirk.vandermerwe,
	f.fainelli, andrew, vivien.didelot

From: Jiri Pirko <jiri@mellanox.com>

To provide visibility of the ports, as discussed this week, 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.

Note that I send this as RFC because I don't have the NFP bits correct.
The switch ID should be only set for the eswitch ports (representors).
Jakub, could you please help with this?

As a follow-up I also plan to add devlink_port_attrs_set to all users
of ndo_get_port_parent_id and ndo_get_phys_port_name and remove these
ndos completely. But that also depends on Jakub's patchset which
introduces PF and VF port flavours.

Jiri Pirko (8):
  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
  nfp: pass switch ID through devlink_port_attrs_set()
  nfp: register devlink port before netdev
  nfp: remove ndo_get_port_parent_id implementation

 drivers/net/ethernet/mellanox/mlxsw/core.c         |  7 ++-
 drivers/net/ethernet/mellanox/mlxsw/core.h         |  4 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     | 17 ++-----
 drivers/net/ethernet/mellanox/mlxsw/switchx2.c     | 16 +------
 drivers/net/ethernet/netronome/nfp/nfp_devlink.c   |  6 ++-
 .../net/ethernet/netronome/nfp/nfp_net_common.c    |  1 -
 drivers/net/ethernet/netronome/nfp/nfp_net_main.c  | 27 ++++++-----
 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c  |  1 -
 drivers/net/ethernet/netronome/nfp/nfp_port.c      | 16 -------
 include/net/devlink.h                              | 23 +++++++--
 include/uapi/linux/devlink.h                       |  2 +
 net/core/dev.c                                     |  8 +++-
 net/core/devlink.c                                 | 54 +++++++++++++++++++---
 net/dsa/dsa2.c                                     |  6 +--
 14 files changed, 109 insertions(+), 79 deletions(-)

-- 
2.14.5


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-03-02  7:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-01 16:05 [patch net-next RFC 0/8] net: expose switch ID via devlink Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 1/8] net: devlink: convert devlink_port_attrs bools to bits Jiri Pirko
2019-03-02  2:48   ` Florian Fainelli
2019-03-01 16:05 ` [patch net-next RFC 2/8] net: devlink: extend port attrs for switch ID Jiri Pirko
2019-03-02  2:53   ` Florian Fainelli
2019-03-02  7:34     ` Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 3/8] net: devlink: introduce devlink_compat_switch_id_get() helper Jiri Pirko
2019-03-01 16:45   ` Jakub Kicinski
2019-03-01 16:40     ` Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 4/8] mlxsw: Pass switch ID through devlink_port_attrs_set() Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 5/8] mlxsw: Remove ndo_get_port_parent_id implementation Jiri Pirko
2019-03-02  2:57   ` Florian Fainelli
2019-03-02  7:36     ` Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 6/8] nfp: pass switch ID through devlink_port_attrs_set() Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 7/8] nfp: register devlink port before netdev Jiri Pirko
2019-03-01 16:05 ` [patch net-next RFC 8/8] nfp: remove ndo_get_port_parent_id implementation Jiri Pirko
2019-03-02  2:58   ` Florian Fainelli
2019-03-02  2:58 ` [patch net-next RFC 0/8] net: expose switch ID via devlink Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).