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: <47805689-2c52-ea26-49a6-3fbe3aa22a88@huawei.com>
Date:   Mon, 7 Jun 2021 10:44:30 +0800
From:   "huangguangbin (A)" <huangguangbin2@...wei.com>
To:     Richard Cochran <richardcochran@...il.com>
CC:     <davem@...emloft.net>, <kuba@...nel.org>, <netdev@...r.kernel.org>,
        <linux-kernel@...r.kernel.org>, <salil.mehta@...wei.com>,
        <lipeng321@...wei.com>, <tanhuazhong@...wei.com>
Subject: Re: [RESEND net-next 1/2] net: hns3: add support for PTP



On 2021/6/5 23:53, Richard Cochran wrote:
> On Sat, Jun 05, 2021 at 06:37:19PM +0800, huangguangbin (A) wrote:
>>> Need mutex or spinlock to protest against concurrent access.
>>>
>> Ok, thank you. Is it better to add mutex or spinlock in the public place, like ptp_clock_adjtime()?
>> Then there's no need to add mutex or spinlock in all the drives.
> 
> No, that is a terrible idea.  The class layer has no idea about the
> hardware implementation.  Only the driver knows that.
> 
> Thanks,
> Richard
> .
> 
Ok, thanks. We will add mutex or spinlock as your idea, and repost a new version after we test ok.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ