diff options
author | Breno Leitao <leitao@debian.org> | 2024-07-02 11:55:53 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-07-04 10:19:24 -0700 |
commit | 82c81e740defbe2cd9889ba76da15f99d7cba252 (patch) | |
tree | b01a11f3911d6f28e1b2a6e07d29140c3712c59d /.get_maintainer.ignore | |
parent | beba3771d9e049dd552ce42a31f263e098392407 (diff) |
crypto: caam: Unembed net_dev structure from qi
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_netdev_dummy() to allocate the net_device object at
caam_qi_init().
The free of the device occurs at caam_qi_shutdown().
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-4-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions