RE: [EXTERNAL] Re: [net-next PATCH v2 1/6] octeontx2-pf: Add AF_XDP non-zero copy support

From: Suman Ghosh
Date: Fri Jan 10 2025 - 04:35:54 EST


Hi Simon,

>
>> @@ -109,6 +109,11 @@ static void otx2_xdp_snd_pkt_handler(struct
>otx2_nic *pfvf,
>> otx2_dma_unmap_page(pfvf, sg->dma_addr[0],
>> sg->size[0], DMA_TO_DEVICE);
>> page = virt_to_page(phys_to_virt(pa));
>> + if (page->pp) {
>> + page_pool_recycle_direct(page->pp, page);
>> + return;
>> + }
>> +
>> put_page(page);
>> }
>>
>
>Hi Suman,
>
>It is included indirectly in the following patch,
>[v2 2/6] octeontx2-pf: Don't unmap page pool buffer used by XDP, but I
>believe you need the following in order for this to compile:
[Suman] ack
>
>#include <net/page_pool/helpers.h>
>
>...
>
>pw-bot: changes-requested