devlink: Add port width attribute
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | mlxsw: Set port width attribute in driverdrivers/ drivers/ drivers/ +3 more | +9 | 0 replies | |
| 2/3 | devlink: Add a new devlink port width attribute and pass to netlinkdrivers/ drivers/ drivers/ +9 more | +23 | 1 reply | |
| 3/3 | selftests: net: Add port split testtools/ tools/ | +260 | 6 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Jiri Pirko | Petr Machata | Shannon Nelson |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | R-b | A-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH net-next 0/3] devlink: Add port width attribute
From: Ido Schimmel <[email protected]>
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
Signature · 1 line
2.26.2