From: Breno Leitao <leitao@debian.org>
To: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Breno Leitao <leitao@debian.org>,
efault@gmx.de, jv@jvosburgh.net, kernel-team@meta.com,
calvin@wbinvd.org
Subject: [PATCH net-next 0/2] net: netpoll: remove dead code and speed up rtnl-locked region
Date: Thu, 18 Sep 2025 05:25:56 -0700 [thread overview]
Message-ID: <20250918-netpoll_jv-v1-0-67d50eeb2c26@debian.org> (raw)
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`.
Signed-off-by: Breno Leitao <leitao@debian.org>
---
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,
--
Breno Leitao <leitao@debian.org>
next reply other threads:[~2025-09-18 12:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-18 12:25 Breno Leitao [this message]
2025-09-18 12:25 ` [PATCH net-next 1/2] net: netpoll: remove unused netpoll pointer from netpoll_info Breno Leitao
2025-09-18 12:25 ` [PATCH net-next 2/2] net: netpoll: use synchronize_net() instead of synchronize_rcu() Breno Leitao
2025-09-20 1:00 ` [PATCH net-next 0/2] net: netpoll: remove dead code and speed up rtnl-locked region patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250918-netpoll_jv-v1-0-67d50eeb2c26@debian.org \
--to=leitao@debian.org \
--cc=calvin@wbinvd.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=efault@gmx.de \
--cc=horms@kernel.org \
--cc=jv@jvosburgh.net \
--cc=kernel-team@meta.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®