diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2025-09-20 03:50:19 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-20 03:52:06 +0300 |
| commit | 312e6f7676e63bbb9b81e5c68e580a9f776cc6f0 (patch) | |
| tree | 183fa22b7c5c3114d1f64ae3a1b66d50ab3115dd /include | |
| parent | 4d3c5db44cfd121ed3d930deea91c230e2db3bae (diff) | |
| parent | 614accf5455304ac0e708882609a34ec9aec463b (diff) | |
| download | linux-312e6f7676e63bbb9b81e5c68e580a9f776cc6f0.tar.xz | |
Merge branch 'net-netpoll-remove-dead-code-and-speed-up-rtnl-locked-region'
Breno Leitao says:
====================
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.
====================
Link: https://patch.msgid.link/20250918-netpoll_jv-v1-0-67d50eeb2c26@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netpoll.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index b5ea9882eda8..f22eec466040 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h @@ -55,7 +55,6 @@ struct netpoll_info { struct delayed_work tx_work; - struct netpoll *netpoll; struct rcu_head rcu; }; |
