net: introduce per-netns netdevice notifiers and use them in mlxsw
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: push loops and nb calls into helper functionsinclude/ include/ net/ | +66 | 0 replies | |
| 2/3 | net: introduce per-netns netdevice notifiersinclude/ include/ net/ | +93 | 5 replies | |
| 3/3 | mlxsw: spectrum: Use per-netns netdevice notifier registrationdrivers/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch net-next 0/3] net: introduce per-netns netdevice notifiers and use them in mlxsw
From: Jiri Pirko <[email protected]>
Some drivers, like mlxsw, are not interested in notifications coming in for netdevices from other network namespaces. So introduce per-netns notifiers and allow to reduce overhead by listening only for notifications from the same netns.
This is also a preparation for upcoming patchset "devlink: allow devlink
instances to change network namespace". This resolves deadlock during
reload mlxsw into initial netns made possible by328fbe747ad4 ("net: Close race between {un, }register_netdevice_notifier() and setup_net()/cleanup_net()").
Jiri Pirko (3):
net: push loops and nb calls into helper functions
net: introduce per-netns netdevice notifiers
mlxsw: spectrum: Use per-netns netdevice notifier registration
.../net/ethernet/mellanox/mlxsw/spectrum.c | 9 +- include/linux/netdevice.h | 6 + include/net/net_namespace.h | 6 +- net/core/dev.c | 176 +++++++++++++++--- 4 files changed, 165 insertions(+), 32 deletions(-)
Signature · 1 line
2.21.0