mac80211: rx: frames received out of order
Subsystems (3)
PATCH v2 1/1 mac80211: rx: frames received out of order
From: Meirav Kama <[email protected]>
Upon forwarding frames from Rx to Tx in mesh, driver clones the skb.
It zeros the tx_info and doesn't set hw_queue correctly. It then enqueues
the frame in queue 0 (VOICE) instead of the correct queue.
Upon re-queue of this frame, driver inserts it to the correct queue (e.g. BE). After that, driver dequeue frames from 2 different queues and sends them out of order. To fix this, driver will set the tx_info->hw_queue to the correct queue when cloning the skb.
---
V2 - Revised comment
net/mac80211/rx.c | 1 + 1 file changed, 1 insertion(+)
net/mac80211/rx.c +1 -0
@@ -2392,6 +2392,7 @@ ieee80211_rx_h_mesh_fwding(struct ieee80211_rx_data *rx) info->flags |=IEEE80211_TX_INTFL_NEED_TXPROCESSING ; info->control.vif = &rx->sdata->vif; info->control.jiffies = jiffies; + info->hw_queue = q;if (is_multicast_ether_addr (fwd_hdr->addr1)) {IEEE80211_IFSTA_MESH_CTR_INC (ifmsh, fwded_mcast);memcpy (fwd_hdr->addr2, sdata->vif.addr,ETH_ALEN );
Signature · 1 line
2.9.0
Johannes Berg
maintainerQuoted 13 lines · Yaniv Machani
From: Meirav Kama <[email protected]>
Upon forwarding frames from Rx to Tx in mesh, driver clones the skb. It zeros the
tx_infoand doesn't sethw_queuecorrectly. It then enqueues
the frame in queue 0 (VOICE) instead of the correct queue. Upon re-queue of this frame, driver inserts it to the correct queue (e.g. BE).
After that, driver dequeue frames from 2 different queues and sends them out of order.
To fix this, driver will set thetx_info->hw_queueto the correct queue when cloning the skb.
Makes sense, but the subject is a bit misleading - can you come up with a better one?
johannes