Re: [PATCH bpf v2] xsk: Do not free ZC Rx buffer when the Rx ring is full
From: Nitin Shetty J
Date: Sun Nov 01 2026 - 08:10:02 EST
On 2026-10-30 at 13:44:17, Marcin Knap (marcin.knap@xxxxxxxxxx) wrote:
> diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
> index 90af9b9044aa..6d10c132f61c 100644
> --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
> +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
> @@ -1555,7 +1555,8 @@ static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
> *need_xdp_flush = true;
> return true;
> }
> - return false;
> + xsk_buff_free(xsk_buff);
> + return true;
> }
>
> err = xdp_do_redirect(pfvf->netdev, &xdp, prog);
the Octeontx2 changes look good.Thanks.
Reviewed-by: Nitin Shetty J <nshettyj@xxxxxxxxxxx>