Skip to content

RFC net: devlink: prepare mlxsw and netdevsim for locked reload

Jiri Pirko netdev 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest9 patches 0 repliesNew
  2. v1 RFC10 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9net: devlink: avoid false DEADLOCK warning reported by lockdepnet/core/devlink.c+4 -00 replies
2/9net: devlink: add unlocked variants of devling_trap*() functionsinclude/net/devlink.h net/core/devlink.c+168 -320 replies
3/9net: devlink: add unlocked variants of devlink_resource*() functionsinclude/net/devlink.h net/core/devlink.c+173 -610 replies
4/9net: devlink: add unlocked variants of devlink_sb*() functionsinclude/net/devlink.h net/core/devlink.c+41 -180 replies
5/9net: devlink: add unlocked variants of devlink_dpipe*() functionsinclude/net/devlink.h net/core/devlink.c+147 -460 replies
6/9mlxsw: convert driver to use unlocked devlink API during init/finidrivers/net/ethernet/mellanox/mlxsw/core.c drivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum1_kvdl.c +7 more+248 -2410 replies
7/9net: devlink: add unlocked variants of devlink_region_create/destroy() functionsinclude/net/devlink.h net/core/devlink.c+66 -280 replies
8/9netdevsim: convert driver to use unlocked devlink API during init/finidrivers/net/netdevsim/bus.c drivers/net/netdevsim/dev.c drivers/net/netdevsim/fib.c +3 more+102 -1230 replies
9/9net: devlink: remove unused locked functionsinclude/net/devlink.h net/core/devlink.c+0 -1880 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchMoshe Shemesh
1/9
2/9
3/9
4/9
5/9
6/9
7/9R-b
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [patch net-next RFCv2 0/9] net: devlink: prepare mlxsw and netdevsim for locked reload

From: Jiri Pirko <[email protected]>

This is preparation patchset to be able to eventually make a switch and make reload cmd to take devlink->lock as the other commands do.

This patchset is preparing 2 major users of devlink API - mlxsw and netdevsim. The sets of functions are similar, therefore taking care of both here.

I would like to ask you to take this RFC for a test spin, will send v1 after you give me a go.

Jiri Pirko (8):
net: devlink: add unlocked variants of devling_trap*() functions
net: devlink: add unlocked variants of devlink_resource*() functions
net: devlink: add unlocked variants of devlink_sb*() functions
net: devlink: add unlocked variants of devlink_dpipe*() functions
mlxsw: convert driver to use unlocked devlink API during init/fini
net: devlink: add unlocked variants of devlink_region_create/destroy()
functions
netdevsim: convert driver to use unlocked devlink API during init/fini
net: devlink: remove unused locked functions

Moshe Shemesh (1):
net: devlink: avoid false DEADLOCK warning reported by lockdep

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  53 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 103 ++-
 .../ethernet/mellanox/mlxsw/spectrum1_kvdl.c  |  82 +--
 .../mellanox/mlxsw/spectrum_buffers.c         |  14 +-
 .../ethernet/mellanox/mlxsw/spectrum_cnt.c    |  62 +-
 .../ethernet/mellanox/mlxsw/spectrum_dpipe.c  |  88 +--
 .../mellanox/mlxsw/spectrum_policer.c         |  32 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c |  22 +-
 .../ethernet/mellanox/mlxsw/spectrum_span.c   |   6 +-
 .../ethernet/mellanox/mlxsw/spectrum_trap.c   |  27 +-
 drivers/net/netdevsim/bus.c                   |  19 -
 drivers/net/netdevsim/dev.c                   | 134 ++--
 drivers/net/netdevsim/fib.c                   |  62 +-
 drivers/net/netdevsim/netdevsim.h             |   3 -
 include/net/devlink.h                         |  76 ++-
 net/core/devlink.c                            | 637 ++++++++++++------
 16 files changed, 816 insertions(+), 604 deletions(-)
Signature · 1 line
2.35.3