net: allow per-net notifier to follow netdev into namespace
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 1 replyIn review
- v14 patches 11 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | net: call call_netdevice_unregister_net_notifiers from unregisternet/ | +3 | 0 replies | |
| 2/4 | net: push code from net notifier reg/unreg into helpersnet/ | +38 | 0 replies | |
| 3/4 | net: introduce dev_net notifier register/unregister variantsinclude/ net/ | +63 | 0 replies | |
| 4/4 | mlx5: Use dev_net netdevice notifier registrationsdrivers/ drivers/ drivers/ +5 more | +28 | 0 replies |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | David Ahern |
|---|---|
| 1/4 | R-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.
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