Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src-draft/trunk]: src/sys/net80211 Give the per-radio workqueue a reasonable...



details:   https://anonhg.NetBSD.org/src-all/rev/63f10adce96c
branches:  trunk
changeset: 369337:63f10adce96c
user:      Martin Husemann <martin%NetBSD.org@localhost>
date:      Tue Dec 14 21:21:08 2021 +0100

description:
Give the per-radio workqueue a reasonable name.

Helps debugging on machines where multiple wlan adapters are available.

diffstat:

 sys/net80211/ieee80211.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 7f349d7b8610 -r 63f10adce96c sys/net80211/ieee80211.c
--- a/sys/net80211/ieee80211.c  Tue Dec 14 21:19:26 2021 +0100
+++ b/sys/net80211/ieee80211.c  Tue Dec 14 21:21:08 2021 +0100
@@ -429,7 +429,10 @@
         * Create a workqueue for all state changes, ieee80211_netbsd.*
         * has glue to translate taskqueue functions to workqueue.
         */
-       if (workqueue_create(&ic->ic_tq, "net80211_wq",
+       char name[MAXCOMLEN];
+       snprintf(name, sizeof name, "%swq", ic->ic_name);
+       name[sizeof name - 1] = 0;
+       if (workqueue_create(&ic->ic_tq, name,
            ieee80211_runwork, ic, PRI_SOFTNET, IPL_NET, WQ_MPSAFE))
                panic("net80211 workqueue not created");
 #endif



Home | Main Index | Thread Index | Old Index