mac80211: move aggregation callback processing
This moves the aggregation callback processing to the per-sdata skb queue and a work function rather than the tasklet. Unfortunately, this means that it extends the pkt_type hack to that skb queue. However, it will enable making ampdu_action API changes gradually, my current plan is to get rid of this again by forcing drivers to only return from ampdu_action() when everything is done, thus removing the callbacks completely. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
344eec67c7
commit
c1475ca99e
@@ -259,7 +259,6 @@ static void ieee80211_tasklet_handler(unsigned long data)
|
||||
{
|
||||
struct ieee80211_local *local = (struct ieee80211_local *) data;
|
||||
struct sk_buff *skb;
|
||||
struct ieee80211_ra_tid *ra_tid;
|
||||
|
||||
while ((skb = skb_dequeue(&local->skb_queue)) ||
|
||||
(skb = skb_dequeue(&local->skb_queue_unreliable))) {
|
||||
@@ -274,18 +273,6 @@ static void ieee80211_tasklet_handler(unsigned long data)
|
||||
skb->pkt_type = 0;
|
||||
ieee80211_tx_status(local_to_hw(local), skb);
|
||||
break;
|
||||
case IEEE80211_DELBA_MSG:
|
||||
ra_tid = (struct ieee80211_ra_tid *) &skb->cb;
|
||||
ieee80211_stop_tx_ba_cb(ra_tid->vif, ra_tid->ra,
|
||||
ra_tid->tid);
|
||||
dev_kfree_skb(skb);
|
||||
break;
|
||||
case IEEE80211_ADDBA_MSG:
|
||||
ra_tid = (struct ieee80211_ra_tid *) &skb->cb;
|
||||
ieee80211_start_tx_ba_cb(ra_tid->vif, ra_tid->ra,
|
||||
ra_tid->tid);
|
||||
dev_kfree_skb(skb);
|
||||
break ;
|
||||
default:
|
||||
WARN(1, "mac80211: Packet is of unknown type %d\n",
|
||||
skb->pkt_type);
|
||||
|
Reference in New Issue
Block a user