Thread (2 messages) 2 messages, 2 authors, 2008-03-27

Re: [PATCH 1/1] mac80211: A-MPDU MLME use dynamic allocation

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2008-03-27 13:07:03

This patch alters the A-MPDU MLME in sta_info to use dynamic allocation,
thus drastically improving memory usage - from a constant ~2 Kbyte in
the previous (static) allocation to a lower limit of ~200 Byte and an upper
limit of ~2 Kbyte.
Cool. This will definitely clash with the locking rework and struct
reordering I did, but I can redo those after comments and after this
patch.
 	spin_lock_bh(&sta->ampdu_mlme.ampdu_tx);
-	state = sta->ampdu_mlme.tid_tx[tid].state;
+	state = sta->ampdu_mlme.tid_state_tx[tid];
 	spin_unlock_bh(&sta->ampdu_mlme.ampdu_tx);
In fact, I forgot those locks anyway so the patch I posted won't work.

johannes

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help