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/653fc485c9f3
branches:  trunk
changeset: 363333:653fc485c9f3
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 db8546c4d0e6 -r 653fc485c9f3 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