Skip to content

net/mlx5: Move notifiers outside the devlink lock

Tariq Toukan linux-rdma lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6net/mlx5: Initialize events outside devlink lockdrivers/net/ethernet/mellanox/mlx5/core/main.c+24 -100 repliesApplied
2/6net/mlx5: Move the esw mode notifier chain outside the devlink lockdrivers/net/ethernet/mellanox/mlx5/core/eswitch.c drivers/net/ethernet/mellanox/mlx5/core/eswitch.h drivers/net/ethernet/mellanox/mlx5/core/main.c +2 more+17 -120 repliesApplied
3/6net/mlx5: Move the vhca event notifier outside of the devlink lockdrivers/net/ethernet/mellanox/mlx5/core/main.c drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c +3 more+35 -480 repliesApplied
4/6net/mlx5: Move the SF HW table notifier outside the devlink lockdrivers/net/ethernet/mellanox/mlx5/core/main.c drivers/net/ethernet/mellanox/mlx5/core/sf/hw_table.c drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h +1 more+54 -350 repliesApplied
5/6net/mlx5: Move the SF table notifiers outside the devlink lockdrivers/net/ethernet/mellanox/mlx5/core/main.c drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h +1 more+78 -330 repliesApplied
6/6net/mlx5: Move SF dev table notifier registration outside the PF devlink lockdrivers/net/ethernet/mellanox/mlx5/core/main.c drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.h +1 more+49 -170 repliesApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchCarolina Jubran
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/6] net/mlx5: Move notifiers outside the devlink lock

Hi,

This series by Cosmin moves blocking notifier registration in the mlx5 driver outside the devlink lock during probe.

This is mostly a no-op refactoring that consists of multiple pieces. It is necessary because upcoming code will introduce a potential locking cycle between the devlink lock and the blocking notifier head mutexes, so these notifiers must move out of the devlink-locked critical section.

Regards,
Tariq

Cosmin Ratiu (6):
net/mlx5: Initialize events outside devlink lock net/mlx5: Move the esw mode notifier chain outside the devlink lock net/mlx5: Move the vhca event notifier outside of the devlink lock net/mlx5: Move the SF HW table notifier outside the devlink lock net/mlx5: Move the SF table notifiers outside the devlink lock net/mlx5: Move SF dev table notifier registration outside the PF
devlink lock

 .../net/ethernet/mellanox/mlx5/core/eswitch.c | 13 +--
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |  7 +-
 .../net/ethernet/mellanox/mlx5/core/main.c    | 70 +++++++++++----
 .../ethernet/mellanox/mlx5/core/sf/dev/dev.c  | 48 ++++++----
 .../ethernet/mellanox/mlx5/core/sf/dev/dev.h  | 11 +++
 .../ethernet/mellanox/mlx5/core/sf/devlink.c  | 90 ++++++++++++-------
 .../ethernet/mellanox/mlx5/core/sf/hw_table.c | 61 ++++++++-----
 .../net/ethernet/mellanox/mlx5/core/sf/sf.h   | 20 ++++-
 .../mellanox/mlx5/core/sf/vhca_event.c        | 69 ++++++--------
 .../mellanox/mlx5/core/sf/vhca_event.h        |  5 ++
 include/linux/mlx5/driver.h                   | 10 ++-
 11 files changed, 253 insertions(+), 151 deletions(-)

base-commit: c9dfb92de0738eb7fe6a591ad1642333793e8b6e

Signature · 1 line
2.31.1