Subject: Re: [PATCH net-next 07/15] eth: link netdev to page_pools in drivers

From: Jakub Kicinski <[email-masked]>
Date: Thu, 9 Nov 2023 08:26:30 -0800

On Thu, 9 Nov 2023 11:11:04 +0200 Ilias Apalodimas wrote:
> > ---
> >  drivers/net/ethernet/broadcom/bnxt/bnxt.c         | 1 +
> >  drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 1 +
> >  drivers/net/ethernet/microsoft/mana/mana_en.c     | 1 +
> >  3 files changed, 3 insertions(+)  
> 
> Mind add a line for netsec.c (probably in netsec_setup_rx_dring),
> since that's the only NIC I currently have around with pp support?

It's a single queue / single napi device? So like this?

diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c
index 0891e9e49ecb..384c506bb930 100644
--- a/drivers/net/ethernet/socionext/netsec.c
+++ b/drivers/net/ethernet/socionext/netsec.c
@@ -1302,6 +1302,8 @@ static int netsec_setup_rx_dring(struct netsec_priv *priv)
 		.dma_dir = xdp_prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE,
 		.offset = NETSEC_RXBUF_HEADROOM,
 		.max_len = NETSEC_RX_BUF_SIZE,
+		.napi = priv->napi,
+		.netdev = priv->ndev,
 	};
 	int i, err;