Commit bada991b authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlwifi: remove messages from queue wake/stop

The only reason we ever stop/wake queues at
the transport level is now that they become
full (or non-full), so the messages aren't
useful any more -- remove them.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 83626404
...@@ -409,7 +409,7 @@ static inline u8 iwl_get_queue_ac(struct iwl_tx_queue *txq) ...@@ -409,7 +409,7 @@ static inline u8 iwl_get_queue_ac(struct iwl_tx_queue *txq)
} }
static inline void iwl_wake_queue(struct iwl_trans *trans, static inline void iwl_wake_queue(struct iwl_trans *trans,
struct iwl_tx_queue *txq, const char *msg) struct iwl_tx_queue *txq)
{ {
u8 queue = txq->swq_id; u8 queue = txq->swq_id;
u8 ac = queue & 3; u8 ac = queue & 3;
...@@ -420,19 +420,19 @@ static inline void iwl_wake_queue(struct iwl_trans *trans, ...@@ -420,19 +420,19 @@ static inline void iwl_wake_queue(struct iwl_trans *trans,
if (test_and_clear_bit(hwq, trans_pcie->queue_stopped)) { if (test_and_clear_bit(hwq, trans_pcie->queue_stopped)) {
if (atomic_dec_return(&trans_pcie->queue_stop_count[ac]) <= 0) { if (atomic_dec_return(&trans_pcie->queue_stop_count[ac]) <= 0) {
iwl_op_mode_queue_not_full(trans->op_mode, ac); iwl_op_mode_queue_not_full(trans->op_mode, ac);
IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d ac %d. %s", IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d ac %d",
hwq, ac, msg); hwq, ac);
} else { } else {
IWL_DEBUG_TX_QUEUES(trans, "Don't wake hwq %d ac %d" IWL_DEBUG_TX_QUEUES(trans,
" stop count %d. %s", "Don't wake hwq %d ac %d stop count %d",
hwq, ac, atomic_read(&trans_pcie-> hwq, ac,
queue_stop_count[ac]), msg); atomic_read(&trans_pcie->queue_stop_count[ac]));
} }
} }
} }
static inline void iwl_stop_queue(struct iwl_trans *trans, static inline void iwl_stop_queue(struct iwl_trans *trans,
struct iwl_tx_queue *txq, const char *msg) struct iwl_tx_queue *txq)
{ {
u8 queue = txq->swq_id; u8 queue = txq->swq_id;
u8 ac = queue & 3; u8 ac = queue & 3;
...@@ -443,19 +443,19 @@ static inline void iwl_stop_queue(struct iwl_trans *trans, ...@@ -443,19 +443,19 @@ static inline void iwl_stop_queue(struct iwl_trans *trans,
if (!test_and_set_bit(hwq, trans_pcie->queue_stopped)) { if (!test_and_set_bit(hwq, trans_pcie->queue_stopped)) {
if (atomic_inc_return(&trans_pcie->queue_stop_count[ac]) > 0) { if (atomic_inc_return(&trans_pcie->queue_stop_count[ac]) > 0) {
iwl_op_mode_queue_full(trans->op_mode, ac); iwl_op_mode_queue_full(trans->op_mode, ac);
IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d ac %d" IWL_DEBUG_TX_QUEUES(trans,
" stop count %d. %s", "Stop hwq %d ac %d stop count %d",
hwq, ac, atomic_read(&trans_pcie-> hwq, ac,
queue_stop_count[ac]), msg); atomic_read(&trans_pcie->queue_stop_count[ac]));
} else { } else {
IWL_DEBUG_TX_QUEUES(trans, "Don't stop hwq %d ac %d" IWL_DEBUG_TX_QUEUES(trans,
" stop count %d. %s", "Don't stop hwq %d ac %d stop count %d",
hwq, ac, atomic_read(&trans_pcie-> hwq, ac,
queue_stop_count[ac]), msg); atomic_read(&trans_pcie->queue_stop_count[ac]));
} }
} else { } else {
IWL_DEBUG_TX_QUEUES(trans, "stop hwq %d, but it is stopped/ %s", IWL_DEBUG_TX_QUEUES(trans, "stop hwq %d, but it is stopped",
hwq, msg); hwq);
} }
} }
......
...@@ -1487,7 +1487,7 @@ static int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb, ...@@ -1487,7 +1487,7 @@ static int iwl_trans_pcie_tx(struct iwl_trans *trans, struct sk_buff *skb,
txq->need_update = 1; txq->need_update = 1;
iwl_txq_update_write_ptr(trans, txq); iwl_txq_update_write_ptr(trans, txq);
} else { } else {
iwl_stop_queue(trans, txq, "Queue is full"); iwl_stop_queue(trans, txq);
} }
} }
spin_unlock(&txq->lock); spin_unlock(&txq->lock);
...@@ -1591,7 +1591,7 @@ static int iwl_trans_pcie_reclaim(struct iwl_trans *trans, int sta_id, int tid, ...@@ -1591,7 +1591,7 @@ static int iwl_trans_pcie_reclaim(struct iwl_trans *trans, int sta_id, int tid,
tfd_num, ssn); tfd_num, ssn);
freed = iwl_tx_queue_reclaim(trans, txq_id, tfd_num, skbs); freed = iwl_tx_queue_reclaim(trans, txq_id, tfd_num, skbs);
if (iwl_queue_space(&txq->q) > txq->q.low_mark) if (iwl_queue_space(&txq->q) > txq->q.low_mark)
iwl_wake_queue(trans, txq, "Packets reclaimed"); iwl_wake_queue(trans, txq);
} }
spin_unlock(&txq->lock); spin_unlock(&txq->lock);
......
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