From: Kuniyuki Iwashima <kuniyu@amazon.com>
To: Johannes Berg <johannes.berg@intel.com>
Cc: Alexandre Ferrieux <alexandre.ferrieux@gmail.com>,
Kuniyuki Iwashima <kuniyu@amazon.com>,
Kuniyuki Iwashima <kuni1840@gmail.com>,
<linux-wireless@vger.kernel.org>
Subject: [PATCH v1 wl-next 0/3] wifi: wext: Namespacify wireless_nlevent_flush() calls.
Date: Mon, 14 Oct 2024 13:55:40 -0700 [thread overview]
Message-ID: <20241014205543.94787-1-kuniyu@amazon.com> (raw)
Currently, wext's netdev notifier calls wireless_nlevent_flush()
for any event of any device and iterates all netns.
It happens even on a host without wext devices and is problematic
if the host has thousands of netns & devices as reported in the
thread below. [0]
This series will address the issue by removing the netns iteration
in wireless_nlevent_flush().
[0]: https://lore.kernel.org/netdev/CAKYWH0Ti3=4GeeuVyWKJ9LyTuRnf3Wy9GKg4Jb7tdeaT39qADA@mail.gmail.com/
Kuniyuki Iwashima (3):
wifi: wext: Move wext_nlevents to net->gen[].
wifi: wext: Convert wireless_nlevent_work to per-netns work.
wifi: wext: Don't iterate all netns in wireless_nlevent_flush().
include/net/iw_handler.h | 4 +--
include/net/net_namespace.h | 3 --
net/wireless/core.c | 2 +-
net/wireless/wext-core.c | 69 +++++++++++++++++++++++++------------
4 files changed, 50 insertions(+), 28 deletions(-)
--
2.39.5 (Apple Git-154)
next reply other threads:[~2024-10-14 20:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 20:55 Kuniyuki Iwashima [this message]
2024-10-14 20:55 ` [PATCH v1 wl-next 1/3] wifi: wext: Move wext_nlevents to net->gen[] Kuniyuki Iwashima
2024-10-15 6:36 ` Johannes Berg
2024-10-16 0:49 ` Kuniyuki Iwashima
2024-10-16 8:56 ` Johannes Berg
2024-10-16 23:58 ` Kuniyuki Iwashima
2024-10-17 8:06 ` Johannes Berg
2024-10-14 20:55 ` [PATCH v1 wl-next 2/3] wifi: wext: Convert wireless_nlevent_work to per-netns work Kuniyuki Iwashima
2024-10-14 20:55 ` [PATCH v1 wl-next 3/3] wifi: wext: Don't iterate all netns in wireless_nlevent_flush() Kuniyuki Iwashima
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=20241014205543.94787-1-kuniyu@amazon.com \
--to=kuniyu@amazon.com \
--cc=alexandre.ferrieux@gmail.com \
--cc=johannes.berg@intel.com \
--cc=kuni1840@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/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