[PATCH net-next v7 04/10] net: marvell: prestera: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao Acked-by: Elad Nachman --- .../net/ethernet/marvell/prestera/prestera_rxtx.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a

[PATCH net-next v7 10/10] wifi: ath11k: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
-off-by: Breno Leitao Tested-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/ahb.c | 9 +++-- drivers/net/wireless/ath/ath11k/core.h | 2 +- drivers/net/wireless/ath/ath11k/pcic.c | 21 + 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 9 +++-- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net

[PATCH net-next v7 08/10] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-22 Thread Breno Leitao
t;) Signed-off-by: Breno Leitao --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 10

[PATCH net-next v7 07/10] net: ibm/emac: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/ibm/emac/mal.c | 14 +++--- drivers/net/ethernet/ibm/emac/mal.h | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff

[PATCH net-next v7 05/10] net: mediatek: mtk_eth_sock: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 17 + drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 2 files changed, 14 insertions(+), 5

[PATCH net-next v7 06/10] net: ipa: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ipa/gsi.c | 12 drivers/net/ipa/gsi.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/ipa/gsi.c b

[PATCH net-next v7 03/10] net: create a dummy net_device allocator

2024-04-22 Thread Breno Leitao
my devices, by allocating and initializing it. Freeing the device continue to be done through free_netdev() Suggested-by: Jakub Kicinski Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- include/linux/netdevice.h | 3 +++ net/core/dev.c| 56 ++--

[PATCH net-next v7 02/10] net: free_netdev: exit earlier if dummy

2024-04-22 Thread Breno Leitao
ay to identify that this is a dummy device. Also, this device do not need the final put_device(), since dummy devices are not registered (through register_netdevice()), where the device reference is increased (at netdev_register_kobject()/device_add()). Suggested-by: Jakub Kicinski Signed-off-by:

[PATCH net-next v7 01/10] net: core: Fix documentation

2024-04-22 Thread Breno Leitao
Fix bad grammar in description of init_dummy_netdev() function. This topic showed up in the review of the "allocate dummy device dynamically" patch set. Suggested-by: Ido Schimmel Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- net/core/dev.c | 4 ++-- 1 file changed, 2

[PATCH net-next v7 00/10] allocate dummy device dynamically

2024-04-22 Thread Breno Leitao
net_devices. * Patch 2-5: Added users for the new helper. v1: * https://lore.kernel.org/all/20240327200809.512867-1-lei...@debian.org/ Breno Leitao (10): net: core: Fix documentation net: free_netdev: exit earlier if dummy net: create a dummy net_device allocator net: ma

[PATCH net-next v6 10/10] wifi: ath11k: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
-off-by: Breno Leitao Tested-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/ahb.c | 9 +++-- drivers/net/wireless/ath/ath11k/core.h | 2 +- drivers/net/wireless/ath/ath11k/pcic.c | 21 + 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH net-next v6 07/10] net: ibm/emac: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/ibm/emac/mal.c | 14 +++--- drivers/net/ethernet/ibm/emac/mal.h | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff

[PATCH net-next v6 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 9 +++-- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net

[PATCH net-next v6 05/10] net: mediatek: mtk_eth_sock: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 17 + drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 2 files changed, 14 insertions(+), 5

[PATCH net-next v6 08/10] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-11 Thread Breno Leitao
t;) Signed-off-by: Breno Leitao --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 10

[PATCH net-next v6 04/10] net: marvell: prestera: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao Acked-by: Elad Nachman --- .../net/ethernet/marvell/prestera/prestera_rxtx.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a

[PATCH net-next v6 06/10] net: ipa: allocate dummy net_device dynamically

2024-04-11 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ipa/gsi.c | 12 drivers/net/ipa/gsi.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/ipa/gsi.c b

[PATCH net-next v6 03/10] net: create a dummy net_device allocator

2024-04-11 Thread Breno Leitao
my devices, by allocating and initializing it. Freeing the device continue to be done through free_netdev() Suggested-by: Jakub Kicinski Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- include/linux/netdevice.h | 3 +++ net/core/dev.c| 54 ++--

[PATCH net-next v6 02/10] net: free_netdev: exit earlier if dummy

2024-04-11 Thread Breno Leitao
ay to identify that this is a dummy device. Also, this device do not need the final put_device(), since dummy devices are not registered (through register_netdevice()), where the device reference is increased (at netdev_register_kobject()/device_add()). Suggested-by: Jakub Kicinski Signed-off-by:

[PATCH net-next v6 01/10] net: core: Fix documentation

2024-04-11 Thread Breno Leitao
Fix bad grammar in description of init_dummy_netdev() function. This topic showed up in the review of the "allocate dummy device dynamically" patch set. Suggested-by: Ido Schimmel Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- net/core/dev.c | 4 ++-- 1 file changed, 2

[PATCH net-next v6 00/10] allocate dummy device dynamically

2024-04-11 Thread Breno Leitao
the new helper. v1: * https://lore.kernel.org/all/20240327200809.512867-1-lei...@debian.org/ Breno Leitao (10): net: core: Fix documentation net: free_netdev: exit earlier if dummy net: create a dummy net_device allocator net: marvell: prestera: allocate dummy net_device dynamically

Re: [PATCH net-next v5 00/10] allocate dummy device dynamically

2024-04-11 Thread Breno Leitao
On Thu, Apr 11, 2024 at 06:09:26AM -0700, Jakub Kicinski wrote: > On Wed, 10 Apr 2024 06:13:41 -0700 Breno Leitao wrote: > > wifi: ath11k: allocate dummy net_device dynamically > > Sorry Breno, I didn't notice earlier, patch 10 didn't make it > to the list. The seri

[PATCH net-next v5 07/10] net: ibm/emac: allocate dummy net_device dynamically

2024-04-10 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/ibm/emac/mal.c | 14 +++--- drivers/net/ethernet/ibm/emac/mal.h | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff

[PATCH net-next v5 08/10] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-10 Thread Breno Leitao
t;) Signed-off-by: Breno Leitao --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 10

[PATCH net-next v5 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-10 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 9 +++-- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net

[PATCH net-next v5 05/10] net: mediatek: mtk_eth_sock: allocate dummy net_device dynamically

2024-04-10 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 17 + drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 2 files changed, 14 insertions(+), 5

[PATCH net-next v5 06/10] net: ipa: allocate dummy net_device dynamically

2024-04-10 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ipa/gsi.c | 12 drivers/net/ipa/gsi.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/ipa/gsi.c b

[PATCH net-next v5 04/10] net: marvell: prestera: allocate dummy net_device dynamically

2024-04-10 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao Acked-by: Elad Nachman --- .../net/ethernet/marvell/prestera/prestera_rxtx.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a

[PATCH net-next v5 01/10] net: core: Fix documentation

2024-04-10 Thread Breno Leitao
Fix bad grammer in description of init_dummy_netdev() functio. This topic showed up in the review of the "allocate dummy device dynamically" patchset. Suggested-by: Ido Schimmel Signed-off-by: Breno Leitao --- net/core/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletion

[PATCH net-next v5 03/10] net: create a dummy net_device allocator

2024-04-10 Thread Breno Leitao
my devices, by allocating and initializing it. Freeing the device continue to be done through free_netdev() Suggested-by: Jakub Kicinski Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- include/linux/netdevice.h | 3 +++ net/core/dev.c| 54 ++--

[PATCH net-next v5 02/10] net: free_netdev: exit earlier if dummy

2024-04-10 Thread Breno Leitao
ay to identify that this is a dummy device. Also, this device do not need the final put_device(), since dummy devices are not registered (through register_netdevice()), where the device reference is increased (at netdev_register_kobject()/device_add()). Suggested-by: Jakub Kicinski Signed-off-by:

[PATCH net-next v5 00/10] allocate dummy device dynamically

2024-04-10 Thread Breno Leitao
uggested by Ido. * Rebased to net-net/main Breno Leitao (10): net: core: Fix documentation net: free_netdev: exit earlier if dummy net: create a dummy net_device allocator net: marvell: prestera: allocate dummy net_device dynamically net: mediatek: mtk_eth_sock: allocate dummy net_device dynamic

Re: [PATCH net-next v4 2/9] net: create a dummy net_device allocator

2024-04-10 Thread Breno Leitao
On Wed, Apr 10, 2024 at 02:10:04PM +0300, Ido Schimmel wrote: > On Tue, Apr 09, 2024 at 05:57:16AM -0700, Breno Leitao wrote: > > It is impossible to use init_dummy_netdev together with alloc_netdev() > > as the 'setup' argument. > > > > This is because allo

[PATCH net-next v4 6/9] net: ibm/emac: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/ibm/emac/mal.c | 14 +++--- drivers/net/ethernet/ibm/emac/mal.h | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff

[PATCH net-next v4 7/9] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-09 Thread Breno Leitao
t;) Signed-off-by: Breno Leitao --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 10

[PATCH net-next v4 8/9] wifi: ath10k: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 9 +++-- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net

[PATCH net-next v4 9/9] wifi: ath11k: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
-off-by: Breno Leitao Tested-by: Kalle Valo --- drivers/net/wireless/ath/ath11k/ahb.c | 9 +++-- drivers/net/wireless/ath/ath11k/core.h | 2 +- drivers/net/wireless/ath/ath11k/pcic.c | 21 + 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/drivers/net

[PATCH net-next v4 5/9] net: ipa: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ipa/gsi.c | 12 drivers/net/ipa/gsi.h | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/ipa/gsi.c b

[PATCH net-next v4 4/9] net: mediatek: mtk_eth_sock: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 17 + drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +- 2 files changed, 14 insertions(+), 5

[PATCH net-next v4 2/9] net: create a dummy net_device allocator

2024-04-09 Thread Breno Leitao
my devices, by allocating and initializing it. Freeing the device continue to be done through free_netdev() Suggested-by: Jakub Kicinski Signed-off-by: Breno Leitao --- include/linux/netdevice.h | 3 +++ net/core/dev.c| 54 ++- 2 files changed, 39

[PATCH net-next v4 0/9] allocate dummy device dynamically

2024-04-09 Thread Breno Leitao
imon Horman. v4: * Added a new patch to add dummy device at free_netdev(), as suggested by Jakub. * Added support for some wireless driver. * Added some Acked-by and Reviewed-by. Breno Leitao (9): net: free_netdev: exit earlier if dummy net: create a dummy net_device

[PATCH net-next v4 3/9] net: marvell: prestera: allocate dummy net_device dynamically

2024-04-09 Thread Breno Leitao
allocate and initialize dummy devices. [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao Acked-by: Elad Nachman --- .../net/ethernet/marvell/prestera/prestera_rxtx.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a

[PATCH net-next v4 1/9] net: free_netdev: exit earlier if dummy

2024-04-09 Thread Breno Leitao
Kicinski Signed-off-by: Breno Leitao --- net/core/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 92f5bddbc2de..bf0a335781aa 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -11051,7 +11051,8 @@ void free_netdev(struct net_dev

Re: [PATCH 0/3] wifi: Un-embed ath10k and ath11k dummy netdev

2024-04-09 Thread Breno Leitao
On Tue, Apr 09, 2024 at 01:03:21PM +0300, Kalle Valo wrote: > Breno Leitao writes: > > >> > Reading the issue, I am afraid that freeing netdev explicitly > >> > (free_netdev()) might not be the best approach at the exit path. > >> > > >> > I

Re: [PATCH 0/3] wifi: Un-embed ath10k and ath11k dummy netdev

2024-04-08 Thread Breno Leitao
On Mon, Apr 08, 2024 at 07:43:42PM +0300, Kalle Valo wrote: > Breno Leitao writes: > > On Fri, Apr 05, 2024 at 06:15:05PM +0300, Kalle Valo wrote: > >> Breno Leitao writes: > >> > >> > struct net_device shouldn't be embedded into any structure, inst

Re: [PATCH 0/3] wifi: Un-embed ath10k and ath11k dummy netdev

2024-04-08 Thread Breno Leitao
Hello Kalle, On Fri, Apr 05, 2024 at 06:15:05PM +0300, Kalle Valo wrote: > Breno Leitao writes: > > > struct net_device shouldn't be embedded into any structure, instead, > > the owner should use the private space to embed their state into > > net_device. >

[PATCH 3/3] wifi: ath11k: allocate dummy net_device dynamically

2024-04-05 Thread Breno Leitao
-off-by: Breno Leitao --- drivers/net/wireless/ath/ath11k/ahb.c | 9 +++-- drivers/net/wireless/ath/ath11k/core.h | 2 +- drivers/net/wireless/ath/ath11k/pcic.c | 21 + 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/ahb.c

[PATCH 2/3] wifi: ath10k: allocate dummy net_device dynamically

2024-04-05 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 9 +++-- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net

[PATCH 0/3] wifi: Un-embed ath10k and ath11k dummy netdev

2024-04-05 Thread Breno Leitao
ested only. Breno Leitao (3): wifi: qtnfmac: Use netdev dummy allocator helper wifi: ath10k: allocate dummy net_device dynamically wifi: ath11k: allocate dummy net_device dynamically drivers/net/wireless/ath/ath10k/core.c| 9 ++-- drivers/net/wireless/ath/ath10k/core.h| 2 +

[PATCH 1/3] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-05 Thread Breno Leitao
t;) Signed-off-by: Breno Leitao --- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c index f8f55db2f454..f66eb43094d4 10

Re: [PATCH] ath10k: allocate dummy net_device dynamically

2024-03-27 Thread Breno Leitao
7;ve been working on it, and this is what I came up with. This is compile-tested by now, and, if this is what you had in mind, I will do more extensive testing. commit db794d99950f68731884a67d911094d94179c522 Author: Breno Leitao Date: Wed Mar 27 07:20:03 2024 -0700 net: Create

Re: [PATCH] ath10k: allocate dummy net_device dynamically

2024-03-22 Thread Breno Leitao
Hello Jakub, On Thu, Mar 21, 2024 at 03:17:44PM -0700, Jakub Kicinski wrote: > On Thu, 21 Mar 2024 15:02:39 -0700 Jeff Johnson wrote: > > >> As suggested there we should just use kmalloc/kfree to match the > > >> existing logic. > > > > > > Please no. There is no magic here. alloc + free must

Re: [PATCH] ath10k: allocate dummy net_device dynamically

2024-03-20 Thread Breno Leitao
On Wed, Mar 20, 2024 at 05:25:52PM +0200, Kalle Valo wrote: > Jeff Johnson writes: > > > On 3/19/2024 3:47 AM, Breno Leitao wrote: > >> Embedding net_device into structures prohibits the usage of flexible > >> arrays in the net_device structure. For more details,

Re: [PATCH] ath10k: allocate dummy net_device dynamically

2024-03-19 Thread Breno Leitao
On Tue, Mar 19, 2024 at 09:05:24AM -0700, Jeff Johnson wrote: > On 3/19/2024 3:47 AM, Breno Leitao wrote: > > @@ -3687,6 +3690,8 @@ struct ath10k *ath10k_core_create(size_t priv_size, > > struct device *dev, > > > > err_free_coredump: > > ath10k_coredump_

[PATCH] ath10k: allocate dummy net_device dynamically

2024-03-19 Thread Breno Leitao
at ath10k_core_create(). The free of the device occurs at ath10k_core_destroy(). [1] https://lore.kernel.org/all/20240229225910.79e22...@kernel.org/ Signed-off-by: Breno Leitao --- drivers/net/wireless/ath/ath10k/core.c | 10 -- drivers/net/wireless/ath/ath10k/core.h | 2 +- drivers/net