Commit 03269c65 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville

wil6210: Optimize Tx completion

No need to modify HW descriptor, as it will be re-initialized on Tx.
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 4d1ac072
...@@ -855,10 +855,12 @@ int wil_tx_complete(struct wil6210_priv *wil, int ringid) ...@@ -855,10 +855,12 @@ int wil_tx_complete(struct wil6210_priv *wil, int ringid)
} else { } else {
dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE); dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE);
} }
d->dma.addr.addr_low = 0; /*
d->dma.addr.addr_high = 0; * There is no need to touch HW descriptor:
d->dma.length = 0; * - ststus bit TX_DMA_STATUS_DU is set by design,
d->dma.status = TX_DMA_STATUS_DU; * so hardware will not try to process this desc.,
* - rest of descriptor will be initialized on Tx.
*/
vring->swtail = wil_vring_next_tail(vring); vring->swtail = wil_vring_next_tail(vring);
done++; done++;
} }
......
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