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] [day] [month] [year] [list]
Message-Id: <b9eaa2b5-6166-439c-9612-ab6ef41eb952@yunsilicon.com>
Date: Fri, 3 Jan 2025 11:28:50 +0800
From: "tianx" <tianx@...silicon.com>
To: "Andrew Lunn" <andrew@...n.ch>
Cc: "weihonggang" <weihg@...silicon.com>, <netdev@...r.kernel.org>, 
	<andrew+netdev@...n.ch>, <kuba@...nel.org>, <pabeni@...hat.com>, 
	<edumazet@...gle.com>, <davem@...emloft.net>, 
	<jeff.johnson@....qualcomm.com>, <przemyslaw.kitszel@...el.com>, 
	<wanry@...silicon.com>
Subject: Re: [PATCH v2 08/14] net-next/yunsilicon: Add ethernet interface

On 2024/12/31 23:40, Andrew Lunn wrote:
> On Tue, Dec 31, 2024 at 05:40:15PM +0800, tianx wrote:
>> On 2024/12/31 13:12, Andrew Lunn wrote:
>>> On Tue, Dec 31, 2024 at 12:13:23AM +0800, weihonggang wrote:
>>>> Andrew, In another module(xsc_pci), we check xdev_netdev is NULL or not
>>>> to see whether network module(xsc_eth) is loaded. we do not care about
>>>> the real type,and we do not want to include the related header files in
>>>> other modules. so we use the void type.
>>> Please don't top post.
>>>
>>> If all you care about is if the module is loaded, turn it into a bool,
>>> and set it true.
>>>
>>> 	Andrew
>>    Hi, Andrew
>>
>> Not only the PCI module, but our later RDMA module also needs the netdev
>> structure in xsc_core_device to access network information. To simplify
>> the review, we haven't submitted the RDMA module, but keeping the netdev
>> helps avoid repeated changes when submitting later.
> So you might be rewriting this all in order to get the RDMA code
> merged.... But if not, just drop the void * cast. Make xdev_netdev a
> struct net_device *, etc.
>
> 	Andrew
Understood, I'll use struct net_device *.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ