Skip to contentSkip to conversation

mac80211: adjustable number of bits for qdisc pool

PATCH In review Ron Rindjunsky 2 participants 2 messages Jan 30, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: adjustable number of bits for qdisc pool

This fix allows to control the number of bits that qdiscs book keeping can be done for with respect to the qdisc pool

---
 net/mac80211/wme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/wme.c +1 -1
index 7bbc793..f12e044 100644
@@ -25,7 +25,7 @@ const int ieee802_1d_to_ac[8] = { 2, 3, 3, 2, 1, 1, 0, 0 };
 
 struct ieee80211_sched_data
 {
-	unsigned long qdisc_pool;
+	unsigned long qdisc_pool[BITS_TO_LONGS(TC_80211_MAX_QUEUES)];
 	struct tcf_proto *filter_list;
 	struct Qdisc *queues[TC_80211_MAX_QUEUES];
 	struct sk_buff_head requeued[TC_80211_MAX_QUEUES];
Signature · 9 lines
1.5.3.3

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Ron Rindjunsky

This fix allows to control the number of bits that qdiscs book keeping can be done for with respect to the qdisc pool

Yeah this is what I was thinking.

Quoted 1 line
Quoted 17 lines
---
 net/mac80211/wme.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/mac80211/wme.c +1 -1
index 7bbc793..f12e044 100644
@@ -25,7 +25,7 @@ const int ieee802_1d_to_ac[8] = { 2, 3, 3, 2, 1, 1, 0, 0 };
 
 struct ieee80211_sched_data
 {
-	unsigned long qdisc_pool;
+	unsigned long qdisc_pool[BITS_TO_LONGS(TC_80211_MAX_QUEUES)];
 	struct tcf_proto *filter_list;
 	struct Qdisc *queues[TC_80211_MAX_QUEUES];
 	struct sk_buff_head requeued[TC_80211_MAX_QUEUES];