mac80211: Send BAR on same queue as the according QoS frames
RFC 1/1 mac80211: Send BAR on same queue as the according QoS frames
Sending as RFC for now since I'm not sure if this is really required. At least I couldn't come up with a situation where this would be required. However, it looks more correct to me to put the BAR into the same queue as the previously failed QoS frame to avoid possible (?) side effect of the BAR overtaking frames in the hw tx queues ...
Any thoughts?
Thanks,
Helmut
--- net/mac80211/agg-tx.c | 2 +- net/mac80211/ieee80211_i.h | 1 + net/mac80211/tx.c | 13 +++++++++---- 3 files changed, 11 insertions(+), 5 deletions(-)
net/mac80211/agg-tx.c +1 -1
@@ -134,7 +134,7 @@ void ieee80211_send_bar(struct ieee80211_vif *vif, u8 *ra, u16 tid, u16 ssn) bar->start_seq_num =cpu_to_le16 (ssn);IEEE80211_SKB_CB (skb)->flags |=IEEE80211_TX_INTFL_DONT_ENCRYPT ; -ieee80211_tx_skb (sdata, skb); +ieee80211_tx_skb_tid (sdata, skb, tid); }EXPORT_SYMBOL (ieee80211_send_bar);
net/mac80211/ieee80211_i.h +1 -0
@@ -1350,6 +1350,7 @@ void mac80211_ev_michael_mic_failure(struct ieee80211_sub_if_data *sdata, int kevoid ieee80211_set_wmm_default (struct ieee80211_sub_if_data *sdata);void ieee80211_xmit (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb);void ieee80211_tx_skb (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb); +void ieee80211_tx_skb_tid (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb,int tid);void ieee802_11_parse_elems (u8 *start,size_t len,struct ieee802_11_elems *elems); u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,
net/mac80211/tx.c +9 -4
@@ -2700,15 +2700,14 @@ ieee80211_get_buffered_bc(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_get_buffered_bc); -void ieee80211_tx_skb (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb) +void ieee80211_tx_skb_tid (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb,int tid) {skb_set_mac_header (skb,0 );skb_set_network_header (skb,0 );skb_set_transport_header (skb,0 ); -/* Send all internal mgmt frames on VO. Accordingly set TID to 7. */ -skb_set_queue_mapping (skb,IEEE80211_AC_VO ); - skb->priority =7 ; +skb_set_queue_mapping (skb, ieee802_1d_to_ac[tid]); + skb->priority = tid;/* * The other path calling ieee80211_xmit is from the tasklet,
@@ -2719,3 +2718,9 @@ void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb)ieee80211_xmit (sdata, skb);local_bh_enable (); } + +void ieee80211_tx_skb (struct ieee80211_sub_if_data *sdata,struct sk_buff *skb) +{ +ieee80211_tx_skb_tid (sdata, skb,7 ); +} +
Signature · 1 line
1.7.7
Quoted 5 lines · Helmut Schaa
Sending as RFC for now since I'm not sure if this is really required. At least I couldn't come up with a situation where this would be required. However, it looks more correct to me to put the BAR into the same queue as the previously failed QoS frame to avoid possible (?) side effect of the BAR overtaking frames in the hw tx queues ...
I've had to do this in FreeBSD, for more than just the BAR frame - I do this for the ADDBA and null management frames too, just to be sure that frames aren't dropped by the other end.
So, +1 from me. :)
Adrian
Quoted 10 lines · Adrian Chadd
Quoted 5 lines · Helmut Schaa
Sending as RFC for now since I'm not sure if this is really required. At least I couldn't come up with a situation where this would be required. However, it looks more correct to me to put the BAR into the same queue as the previously failed QoS frame to avoid possible (?) side effect of the BAR overtaking frames in the hw tx queues ...
I've had to do this in FreeBSD, for more than just the BAR frame - I do this for the ADDBA and null management frames too, just to be sure that frames aren't dropped by the other end.
Hmm, good point. Also, a DELBA overtaking AMPDUs in the hw queues could be a problem ...
Helmut