netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] devlink: Add port width attribute
@ 2020-05-19 13:40 Ido Schimmel
  2020-05-19 13:40 ` [PATCH net-next 1/3] mlxsw: Set port width attribute in driver Ido Schimmel
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Ido Schimmel @ 2020-05-19 13:40 UTC (permalink / raw)
  To: netdev
  Cc: davem, kuba, jiri, danieller, mlxsw, michael.chan,
	jeffrey.t.kirsher, saeedm, leon, snelson, drivers, andrew,
	vivien.didelot, f.fainelli, Ido Schimmel

From: Ido Schimmel <idosch@mellanox.com>

Danielle says:

Currently, user space has no way of knowing if a port can be split and
into how many ports. This makes it impossible to write generic tests for
port split.

This patch set adds the port's width as an attribute of a devlink port
and exposes the information to user space using a new attribute.

Patch #1 prepares mlxsw to pass width information to devlink
Patch #2 changes device drivers to pass width information to devlink and
exposes it to user space
Patch #3 adds a port split test

Danielle Ratson (3):
  mlxsw: Set port width attribute in driver
  devlink: Add a new devlink port width attribute and pass to netlink
  selftests: net: Add port split test

 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |   2 +-
 drivers/net/ethernet/intel/ice/ice_devlink.c  |   2 +-
 .../ethernet/mellanox/mlx5/core/en/devlink.c  |   4 +-
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |   2 +-
 drivers/net/ethernet/mellanox/mlxsw/core.c    |   8 +-
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   1 +
 drivers/net/ethernet/mellanox/mlxsw/minimal.c |   2 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |   1 +
 .../net/ethernet/mellanox/mlxsw/switchib.c    |   2 +-
 .../net/ethernet/mellanox/mlxsw/switchx2.c    |   2 +-
 .../net/ethernet/netronome/nfp/nfp_devlink.c  |   2 +-
 .../ethernet/pensando/ionic/ionic_devlink.c   |   2 +-
 drivers/net/netdevsim/dev.c                   |   2 +-
 include/net/devlink.h                         |   2 +
 include/uapi/linux/devlink.h                  |   2 +
 net/core/devlink.c                            |   7 +
 net/dsa/dsa2.c                                |   6 +-
 tools/testing/selftests/net/Makefile          |   1 +
 .../selftests/net/devlink_port_split.py       | 259 ++++++++++++++++++
 19 files changed, 292 insertions(+), 17 deletions(-)
 create mode 100755 tools/testing/selftests/net/devlink_port_split.py

-- 
2.26.2


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

end of thread, other threads:[~2020-05-22  0:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-19 13:40 [PATCH net-next 0/3] devlink: Add port width attribute Ido Schimmel
2020-05-19 13:40 ` [PATCH net-next 1/3] mlxsw: Set port width attribute in driver Ido Schimmel
2020-05-19 13:40 ` [PATCH net-next 2/3] devlink: Add a new devlink port width attribute and pass to netlink Ido Schimmel
2020-05-19 19:24   ` Shannon Nelson
2020-05-19 13:40 ` [PATCH net-next 3/3] selftests: net: Add port split test Ido Schimmel
2020-05-19 14:15   ` Andrew Lunn
2020-05-19 18:56     ` Ido Schimmel
2020-05-19 19:33       ` Andrew Lunn
2020-05-20 13:43         ` Ido Schimmel
2020-05-20 13:53           ` Jiri Pirko
2020-05-20 15:23             ` Danielle Ratson
2020-05-22  0:03 ` [PATCH net-next 0/3] devlink: Add port width attribute David Miller

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).