Skip to content

net: allow per-net notifier to follow netdev into namespace

Jiri Pirko netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: call call_netdevice_unregister_net_notifiers from unregisternet/core/dev.c+3 -110 replies
2/4net: push code from net notifier reg/unreg into helpersnet/core/dev.c+38 -220 replies
3/4net: introduce dev_net notifier register/unregister variantsinclude/linux/netdevice.h net/core/dev.c+63 -00 replies
4/4mlx5: Use dev_net netdevice notifier registrationsdrivers/net/ethernet/mellanox/mlx5/core/en/fs.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +5 more+28 -100 replies

Reviews trailers per patch

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

PatchDavid Ahern
1/4R-b
2/4
3/4
4/4

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 v2 0/4] net: allow per-net notifier to follow netdev into namespace

From: Jiri Pirko <[email protected]>

Currently we have per-net notifier, which allows to get only notifications relevant to particular network namespace. That is enough for drivers that have netdevs local in a particular namespace (cannot move elsewhere).

However if netdev can change namespace, per-net notifier cannot be used. Introduce dev_net variant that is basically per-net notifier with an extension that re-registers the per-net notifier upon netdev namespace change. Basically the per-net notifier follows the netdev into namespace.

Jiri Pirko (4):
net: call call_netdevice_unregister_net_notifiers from unregister
net: push code from net notifier reg/unreg into helpers
net: introduce dev_net notifier register/unregister variants
mlx5: Use dev_net netdevice notifier registrations

 .../net/ethernet/mellanox/mlx5/core/en/fs.h   |   1 +
 .../net/ethernet/mellanox/mlx5/core/en_main.c |   3 +-
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |  13 +-
 .../net/ethernet/mellanox/mlx5/core/en_rep.h  |   1 +
 .../net/ethernet/mellanox/mlx5/core/en_tc.c   |   9 +-
 drivers/net/ethernet/mellanox/mlx5/core/lag.c |   8 +-
 drivers/net/ethernet/mellanox/mlx5/core/lag.h |   1 +
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   2 +-
 include/linux/netdevice.h                     |  17 +++
 net/core/dev.c                                | 118 +++++++++++++-----
 10 files changed, 131 insertions(+), 42 deletions(-)
Signature · 1 line
2.21.0