2023-09-12 06:38:04

by Marc Kleine-Budde

[permalink] [raw]
Subject: Re: [PATCH v4 3/3] can: xilinx_can: Add ethtool stats interface for ECC errors

On 01.09.2023 14:10:45, Srinivas Goud wrote:
> Add ethtool stats interface for reading FIFO 1bit/2bit
> ECC errors information.

I just figured out, that there is an u64 stats helper:

https://elixir.bootlin.com/linux/latest/source/include/linux/u64_stats_sync.h

Please make use of this one.

regards,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |


Attachments:
(No filename) (588.00 B)
signature.asc (499.00 B)
Download all attachments