Skip to content

net: netpoll: remove dead code and speed up rtnl-locked region

Breno Leitao lkml 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] change-id 20250918-netpoll_jv-9bf6f640f308

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: netpoll: remove unused netpoll pointer from netpoll_infoinclude/linux/netpoll.h net/core/netpoll.c+0 -20 repliesApplied
2/2net: netpoll: use synchronize_net() instead of synchronize_rcu()net/core/netpoll.c+1 -10 repliesApplied

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/2] net: netpoll: remove dead code and speed up rtnl-locked region

This patchset introduces two minor modernizations to the netpoll infrastructure:

The first patch removes the unused netpoll pointer from the netpoll_info structure. This member is redundant and its presence does not benefit multi-instance setups, as reported by Jay Vosburgh. Eliminating it cleans up the structure and removes unnecessary code.

The second patch updates the netpoll resource cleanup routine to use synchronize_net() instead of synchronize_rcu(). As __netpoll_free() is always called under the RTNL lock, using synchronize_net() leverages the more efficient synchronize_rcu_expedited() in these contexts, reducing time spent in critical sections and improving performance.

Both changes simplify maintenance and enhance efficiency without altering netpoll behavior.

This is not expected to conflict with the other netpoll fix into net.

---
Breno Leitao (2):
net: netpoll: remove unused netpoll pointer from netpoll_info
net: netpoll: use synchronize_net() instead of synchronize_rcu()

 include/linux/netpoll.h | 1 -
 net/core/netpoll.c      | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

---
base-commit: 64d2616972b77506731fa0122d3c48cb04dbe21b
change-id: 20250918-netpoll_jv-9bf6f640f308

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>