Home
last modified time | relevance | path

Searched hist:d6d2b0e1538d5c381ec0ca95afaf772c096ea5dc (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/airoha/
H A Dairoha_eth.cd6d2b0e1538d5c381ec0ca95afaf772c096ea5dc Thu May 15 06:33:06 UTC 2025 Lorenzo Bianconi <lorenzo@kernel.org> net: airoha: Fix page recycling in airoha_qdma_rx_process()

Do not recycle the page twice in airoha_qdma_rx_process routine in case
of error. Just run dev_kfree_skb() if the skb has been allocated and marked
for recycling. Run page_pool_put_full_page() directly if the skb has not
been allocated yet.
Moreover, rely on DMA address from queue entry element instead of reading
it from the DMA descriptor for DMA syncing in airoha_qdma_rx_process().

Fixes: e12182ddb6e71 ("net: airoha: Enable Rx Scatter-Gather")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250515-airoha-fix-rx-process-error-condition-v2-1-657e92c894b9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>