lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a581c6216456468e8695af38c985973d@realtek.com>
Date: Fri, 26 Apr 2024 00:14:22 +0000
From: Ping-Ke Shih <pkshih@...ltek.com>
To: Breno Leitao <leitao@...ian.org>, Kalle Valo <kvalo@...nel.org>
CC: "leit@...a.com" <leit@...a.com>,
        "open list:REALTEK WIRELESS DRIVER
 (rtw88)" <linux-wireless@...r.kernel.org>,
        open list
	<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH wireless-next] wifi: rtw88: Un-embed dummy device

Breno Leitao <leitao@...ian.org> 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_device from the private struct by converting it
> into a pointer. Then use the leverage the new alloc_netdev_dummy()
> helper to allocate and initialize dummy devices.
> 
> [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/
> 
> Signed-off-by: Breno Leitao <leitao@...ian.org>

Acked-by: Ping-Ke Shih <pkshih@...ltek.com>

Like patch of rtw89, I will take it to my tree weeks later.

> ---
>  drivers/net/wireless/realtek/rtw88/pci.c | 17 +++++++++++++----
>  drivers/net/wireless/realtek/rtw88/pci.h |  2 +-
>  2 files changed, 14 insertions(+), 5 deletions(-)
> 
> PS: This is compile-tested only due to lack of hardware to do better
> testing.

Tested with real hardware RTL8723DE and RTL8822CE. 

Tested-by: Ping-Ke Shih <pkshih@...ltek.com>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ