mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: remove struct mt76_sw_queue
All members except for the struct mt76_queue pointer have been removed Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -796,14 +796,12 @@ static void mt76u_tx_worker(struct mt76_worker *w)
|
||||
{
|
||||
struct mt76_dev *dev = container_of(w, struct mt76_dev, tx_worker);
|
||||
struct mt76_queue_entry entry;
|
||||
struct mt76_sw_queue *sq;
|
||||
struct mt76_queue *q;
|
||||
bool wake;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
sq = &dev->q_tx[i];
|
||||
q = sq->q;
|
||||
q = dev->q_tx[i];
|
||||
|
||||
while (q->queued > 0) {
|
||||
if (!q->entry[q->tail].done)
|
||||
@@ -893,7 +891,7 @@ mt76u_tx_queue_skb(struct mt76_dev *dev, enum mt76_txq_id qid,
|
||||
struct sk_buff *skb, struct mt76_wcid *wcid,
|
||||
struct ieee80211_sta *sta)
|
||||
{
|
||||
struct mt76_queue *q = dev->q_tx[qid].q;
|
||||
struct mt76_queue *q = dev->q_tx[qid];
|
||||
struct mt76_tx_info tx_info = {
|
||||
.skb = skb,
|
||||
};
|
||||
@@ -972,7 +970,7 @@ static int mt76u_alloc_tx(struct mt76_dev *dev)
|
||||
|
||||
for (i = 0; i <= MT_TXQ_PSD; i++) {
|
||||
if (i >= IEEE80211_NUM_ACS) {
|
||||
dev->q_tx[i].q = dev->q_tx[0].q;
|
||||
dev->q_tx[i] = dev->q_tx[0];
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -982,7 +980,7 @@ static int mt76u_alloc_tx(struct mt76_dev *dev)
|
||||
|
||||
spin_lock_init(&q->lock);
|
||||
q->hw_idx = mt76u_ac_to_hwq(dev, i);
|
||||
dev->q_tx[i].q = q;
|
||||
dev->q_tx[i] = q;
|
||||
|
||||
q->entry = devm_kcalloc(dev->dev,
|
||||
MT_NUM_TX_ENTRIES, sizeof(*q->entry),
|
||||
@@ -1009,7 +1007,7 @@ static void mt76u_free_tx(struct mt76_dev *dev)
|
||||
struct mt76_queue *q;
|
||||
int j;
|
||||
|
||||
q = dev->q_tx[i].q;
|
||||
q = dev->q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
@@ -1034,7 +1032,7 @@ void mt76u_stop_tx(struct mt76_dev *dev)
|
||||
dev_err(dev->dev, "timed out waiting for pending tx\n");
|
||||
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
q = dev->q_tx[i].q;
|
||||
q = dev->q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
@@ -1046,7 +1044,7 @@ void mt76u_stop_tx(struct mt76_dev *dev)
|
||||
* will fail to submit urb, cleanup those skb's manually.
|
||||
*/
|
||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||
q = dev->q_tx[i].q;
|
||||
q = dev->q_tx[i];
|
||||
if (!q)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user