[PATCH net] net: airoha: Fix page recycling in airoha_qdma_rx_process()

Lorenzo Bianconi lorenzo at kernel.org
Wed May 14 23:33:00 PDT 2025


> On Tue, 13 May 2025 18:34:44 +0200 Lorenzo Bianconi wrote:
> > 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")
> 
> Missed your sign-off.

ops, let me fix it in v2.

Regards,
Lorenzo

> -- 
> pw-bot: cr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20250515/9e8c71cf/attachment-0001.sig>


More information about the Linux-mediatek mailing list