Skip to content

net: introduce per-netns netdevice notifiers and use them in mlxsw

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: push loops and nb calls into helper functionsinclude/linux/netdevice.h include/net/net_namespace.h net/core/dev.c+66 -290 replies
2/3net: introduce per-netns netdevice notifiersinclude/linux/netdevice.h include/net/net_namespace.h net/core/dev.c+93 -05 replies
3/3mlxsw: spectrum: Use per-netns netdevice notifier registrationdrivers/net/ethernet/mellanox/mlxsw/spectrum.c+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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 by
328fbe747ad4 ("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