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: <f2ddbeaa-e053-467f-96d2-699999d72aba@lunn.ch>
Date: Mon, 17 Jun 2024 17:02:24 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Markus Elfring <Markus.Elfring@....de>
Cc: Abhilash K V <kvabhilash@...ana.ai>,
	Andrey Agranovich <aagranovich@...ana.ai>,
	Bharat Jauhari <bjauhari@...ana.ai>,
	David Meriin <dmeriin@...ana.ai>,
	Omer Shpigelman <oshpigelman@...ana.ai>,
	Sagiv Ozeri <sozeri@...ana.ai>, Zvika Yehudai <zyehudai@...ana.ai>,
	netdev@...r.kernel.org, linux-rdma@...r.kernel.org,
	dri-devel@...ts.freedesktop.org,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver

On Mon, Jun 17, 2024 at 04:05:57PM +0200, Markus Elfring wrote:
> …
> > +++ b/drivers/net/ethernet/intel/hbl_cn/common/hbl_cn.c
> > @@ -0,0 +1,5954 @@
> …
> > +int hbl_cn_read_spmu_counters(struct hbl_cn_port *cn_port, u64 out_data[], u32 *num_out_data)
> > +{
> …
> > +	mutex_lock(&cn_port->cnt_lock);
> > +	rc = port_funcs->spmu_sample(cn_port, *num_out_data, out_data);
> > +	mutex_unlock(&cn_port->cnt_lock);
> > +
> > +	return rc;
> > +}
> …
> 
> Would you become interested to apply a statement like “guard(mutex)(&cn_port->cnt_lock);”?
> https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/mutex.h#L196

Hi Markus

We decided for netdev that guard() was too magical, at least for the
moment. Lets wait a few years to see how it pans out. scoped_guard()
is however O.K.

   Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ