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/f5948085a08b
branches: trunk
changeset: 364317:f5948085a08b
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 38981f593eba -r f5948085a08b 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