[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZoU1bh79jugMaRty@gmail.com>
Date: Wed, 3 Jul 2024 04:26:38 -0700
From: Breno Leitao <leitao@...ian.org>
To: Gaurav Jain <gaurav.jain@....com>
Cc: "kuba@...nel.org" <kuba@...nel.org>,
Horia Geanta <horia.geanta@....com>,
Pankaj Gupta <pankaj.gupta@....com>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>,
"horms@...nel.org" <horms@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [EXT] [PATCH net-next v3 4/4] crypto: caam: Unembed net_dev
structure in dpaa2
Hello Gaurav,
On Wed, Jul 03, 2024 at 05:45:23AM +0000, Gaurav Jain wrote:
> > @@ -5096,15 +5109,23 @@ static int __cold dpaa2_dpseci_setup(struct
> > fsl_mc_device *ls_dev)
> > priv->rx_queue_attr[j].fqid,
> > priv->tx_queue_attr[j].fqid);
> >
> > - ppriv->net_dev.dev = *dev;
> > - INIT_LIST_HEAD(&ppriv->net_dev.napi_list);
> napi_list is not needed anymore? There is no mention in commit.
Good question. This allocation is now done in the alloc_netdev_dummy()
path. This is the code path:
alloc_netdev_dummy()->alloc_netdev()->alloc_netdev_mqs() which calls:
INIT_LIST_HEAD(&dev->napi_list);
So, napi_list is initialized when the net_device interface is allocated.
Powered by blists - more mailing lists