All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net-next v2 00/12] net: call for phys_port_name into devlink directly if possible
@ 2019-03-26 12:02 Jiri Pirko
  2019-03-26 12:02 ` [patch net-next v2 01/12] net: replace ndo_get_devlink with ndo_get_devlink_port Jiri Pirko
                   ` (11 more replies)
  0 siblings, 12 replies; 26+ messages in thread
From: Jiri Pirko @ 2019-03-26 12:02 UTC (permalink / raw)
  To: netdev
  Cc: davem, mlxsw, idosch, jakub.kicinski, f.fainelli, andrew,
	vivien.didelot, michael.chan

From: Jiri Pirko <jiri@mellanox.com>

phys_port_name may be assembled by a helper in devlink. It is currently
the case only for mlxsw driver. Benefit from the get_devlink_port ndo
and call into devlink directly from dev_get_phys_port_name(). That saves
the trip to the driver, simplifies the code and makes it similar to
recently introduced ethtool-devlink compat helpers.

Move bnxt, dsa and partly nfp to let devlink core generate the name too.

Jiri Pirko (12):
  net: replace ndo_get_devlink with ndo_get_devlink_port
  net: devlink: introduce devlink_compat_phys_port_name_get()
  mlxsw: Implement ndo_get_devlink_port
  mlxsw: Remove ndo_get_phys_port_name implementation
  net: devlink: remove unused devlink_port_get_phys_port_name() function
  bnxt: implement ndo_get_devlink_port
  bnxt: remove ndo_get_phys_port_name implementation
  dsa: implement ndo_get_devlink_port
  dsa: don't fill-up remove ndo_get_phys_port_name for slaves
  nfp: do not handle nn->port defined case in
    nfp_net_get_phys_port_name()
  net: devlink: expose phys port name
  net: devlink: add warning for ndo_get_phys_port_name set when not
    needed

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  26 ++--
 drivers/net/ethernet/mellanox/mlxsw/core.c    |  10 +-
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   5 +-
 drivers/net/ethernet/mellanox/mlxsw/minimal.c |  22 ++--
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  22 ++--
 .../net/ethernet/mellanox/mlxsw/switchx2.c    |  22 ++--
 drivers/net/ethernet/netronome/nfp/nfp_app.h  |   2 +-
 .../net/ethernet/netronome/nfp/nfp_devlink.c  |  10 +-
 .../ethernet/netronome/nfp/nfp_net_common.c   |   7 +-
 .../net/ethernet/netronome/nfp/nfp_net_repr.c |   2 +-
 include/linux/netdevice.h                     |   6 +-
 include/net/devlink.h                         |  25 +++-
 include/uapi/linux/devlink.h                  |   2 +
 net/core/dev.c                                |  11 +-
 net/core/devlink.c                            | 123 +++++++++++++-----
 net/dsa/dsa_priv.h                            |   1 +
 net/dsa/legacy.c                              |   2 +-
 net/dsa/slave.c                               |  49 ++++++-
 18 files changed, 234 insertions(+), 113 deletions(-)

-- 
2.17.2


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

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

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 12:02 [patch net-next v2 00/12] net: call for phys_port_name into devlink directly if possible Jiri Pirko
2019-03-26 12:02 ` [patch net-next v2 01/12] net: replace ndo_get_devlink with ndo_get_devlink_port Jiri Pirko
2019-03-26 20:27   ` Jakub Kicinski
2019-03-27  7:47     ` Jiri Pirko
2019-03-26 12:02 ` [patch net-next v2 02/12] net: devlink: introduce devlink_compat_phys_port_name_get() Jiri Pirko
2019-03-26 20:30   ` Jakub Kicinski
2019-03-26 12:02 ` [patch net-next v2 03/12] mlxsw: Implement ndo_get_devlink_port Jiri Pirko
2019-03-26 12:02 ` [patch net-next v2 04/12] mlxsw: Remove ndo_get_phys_port_name implementation Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 05/12] net: devlink: remove unused devlink_port_get_phys_port_name() function Jiri Pirko
2019-03-26 20:31   ` Jakub Kicinski
2019-03-26 12:03 ` [patch net-next v2 06/12] bnxt: implement ndo_get_devlink_port Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 07/12] bnxt: remove ndo_get_phys_port_name implementation Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 08/12] dsa: implement ndo_get_devlink_port Jiri Pirko
2019-03-27 19:54   ` Florian Fainelli
2019-03-27 20:01     ` Jiri Pirko
2019-03-27 20:13       ` Florian Fainelli
2019-03-27 23:46         ` Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 09/12] dsa: don't fill-up remove ndo_get_phys_port_name for slaves Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 10/12] nfp: do not handle nn->port defined case in nfp_net_get_phys_port_name() Jiri Pirko
2019-03-26 20:31   ` Jakub Kicinski
2019-03-26 12:03 ` [patch net-next v2 11/12] net: devlink: expose phys port name Jiri Pirko
2019-03-26 20:35   ` Jakub Kicinski
2019-03-27  7:45     ` Jiri Pirko
2019-03-27 11:56       ` Jiri Pirko
2019-03-26 12:03 ` [patch net-next v2 12/12] net: devlink: add warning for ndo_get_phys_port_name set when not needed Jiri Pirko
2019-03-26 20:36   ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.