mirror of https://github.com/torvalds/linux.git
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 dpaa2_caam_priv_per_cpu by converting them into pointers, and allocating them dynamically. Use the leverage alloc_netdev_dummy() to allocate the net_device object at dpaa2_dpseci_setup(). The free of the device occurs at dpaa2_dpseci_disable(). Link: https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ [1] Signed-off-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20240702185557.3699991-5-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| blob_gen.c | ||
| caamalg.c | ||
| caamalg_desc.c | ||
| caamalg_desc.h | ||
| caamalg_qi.c | ||
| caamalg_qi2.c | ||
| caamalg_qi2.h | ||
| caamhash.c | ||
| caamhash_desc.c | ||
| caamhash_desc.h | ||
| caampkc.c | ||
| caampkc.h | ||
| caamprng.c | ||
| caamrng.c | ||
| compat.h | ||
| ctrl.c | ||
| ctrl.h | ||
| debugfs.c | ||
| debugfs.h | ||
| desc.h | ||
| desc_constr.h | ||
| dpseci-debugfs.c | ||
| dpseci-debugfs.h | ||
| dpseci.c | ||
| dpseci.h | ||
| dpseci_cmd.h | ||
| error.c | ||
| error.h | ||
| intern.h | ||
| jr.c | ||
| jr.h | ||
| key_gen.c | ||
| key_gen.h | ||
| pdb.h | ||
| pkc_desc.c | ||
| qi.c | ||
| qi.h | ||
| regs.h | ||
| sg_sw_qm.h | ||
| sg_sw_qm2.h | ||
| sg_sw_sec4.h | ||