Skip to content

devlink: small port_new/del() cleanup

Jiri Pirko 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 Latest3 patches 4 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3devlink: remove duplicate port notificationdrivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h include/net/devlink.h +1 more+6 -551 replyApplied
2/3devlink: remove no longer true locking comment from port_new/del()include/net/devlink.h+0 -41 replyApplied
3/3devlink: pass devlink_port pointer to ops->port_del() instead of indexdrivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c drivers/net/ethernet/mellanox/mlx5/core/sf/sf.h include/net/devlink.h +1 more+10 -131 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon HormanJakub Kicinski
SeriesR-b
1/3R-b
2/3R-b
3/3R-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/3] devlink: small port_new/del() cleanup

From: Jiri Pirko <[email protected]>

This patchset cleans up couple of leftovers after recent devlink locking changes. Previously, both port_new/dev() commands were called without holding instance lock. Currently all devlink commands are called with instance lock held.

The first patch just removes redundant port notification. The second one removes couple of outdated comments.
The last patch changes port_dev() to have devlink_port pointer as an arg instead of port_index, which makes it similar to the rest of port related ops.

Jiri Pirko (3):
devlink: remove duplicate port notification
devlink: remove no longer true locking comment from port_new/del()
devlink: pass devlink_port pointer to ops->port_del() instead of index

 .../ethernet/mellanox/mlx5/core/sf/devlink.c  | 14 ++---
 .../net/ethernet/mellanox/mlx5/core/sf/sf.h   |  6 +-
 include/net/devlink.h                         | 12 +---
 net/devlink/leftover.c                        | 56 ++-----------------
 4 files changed, 16 insertions(+), 72 deletions(-)
Signature · 1 line
2.39.2