[PATCH 3/4] crypto: caam: Unembed net_dev structure from qi

2024-06-24 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_devices from struct caam_qi_pcpu_priv by converting them into pointers, and allocating them dynamically. Use the leverage alloc_net

Re: [PATCH 3/4] crypto: caam: Unembed net_dev structure from qi

2024-06-28 Thread Simon Horman
On Mon, Jun 24, 2024 at 09:21:21AM -0700, Breno Leitao wrote: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_devices from struct caam_qi_pcpu_priv by converting them >

Re: [PATCH 3/4] crypto: caam: Unembed net_dev structure from qi

2024-07-02 Thread Breno Leitao
Hello Simon, On Fri, Jun 28, 2024 at 05:32:26PM +0100, Simon Horman wrote: > On Mon, Jun 24, 2024 at 09:21:21AM -0700, Breno Leitao wrote: > > @@ -530,6 +530,7 @@ static void caam_qi_shutdown(void *data) > > > > if (kill_fq(qidev, per_cpu(pcpu_qipriv.rsp_fq, i))) > >