Commit 3a7dbc3b authored by Pradeep Nemavat's avatar Pradeep Nemavat Committed by John W. Linville
Browse files

mwl8k: Do not stop tx queues

This is in preparation to support life time expiry of packets in the
hardware to avoid head-of-line blocking where a slow client can
hog a tx queue and affect the traffic to a faster client from the same
queue. Time stamp the packets in driver to allow dropping them in the
hardware if they are queued for more than 500ms.

If queues are stopped, packets will be queued up outside the driver.
Since we will be able to timestamp the packets only after they hit the
driver, the timestamp will be less accurate since we cannot consider
the time the packets spent in queues outside the driver. With this commit,
to achieve accurate timestamping, the tx queues will not be stopped in
normal conditions. The only scenarios where the queues will be stopped are
when firmware commands are executing or if the interface is brought down.
Now, we need to be prepared for a situation where packets hit the driver
even after the tx queues are full. Drop all such packets in the driver itself.
Signed-off-by: default avatarPradeep Nemavat <>
Signed-off-by: default avatarNishant Sarmukadam <>
Signed-off-by: default avatarJohn W. Linville <>
parent 2624e96c
......@@ -1666,10 +1666,6 @@ mwl8k_txq_reclaim(struct ieee80211_hw *hw, int index, int limit, int force)
if (index < MWL8K_TX_WMM_QUEUES && processed && priv->radio_on &&
ieee80211_wake_queue(hw, index);
return processed;
......@@ -1951,13 +1947,14 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)
txq = priv->txq + index;
if (index >= MWL8K_TX_WMM_QUEUES && txq->len >= MWL8K_TX_DESCS) {
/* This is the case in which the tx packet is destined for an
* AMPDU queue and that AMPDU queue is full. Because we don't
* start and stop the AMPDU queues, we must drop these packets.
if (txq->len >= MWL8K_TX_DESCS) {
if (start_ba_session) {
mwl8k_remove_stream(hw, stream);
......@@ -1985,9 +1982,6 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)
if (txq->tail == MWL8K_TX_DESCS)
txq->tail = 0;
if (txq->head == txq->tail && index < MWL8K_TX_WMM_QUEUES)
ieee80211_stop_queue(hw, index);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment