[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y2GwSq0EkFvgVWLb@lunn.ch>
Date: Wed, 2 Nov 2022 00:48:26 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, Florian Fainelli <f.fainelli@...il.com>,
corbet@....net, michael.chan@...adcom.com, hkallweit1@...il.com,
linux@...linux.org.uk, huangguangbin2@...wei.com,
chenhao288@...ilicon.com, moshet@...dia.com,
linux@...pel-privat.de, linux-doc@...r.kernel.org
Subject: Re: [PATCH net-next v3] ethtool: linkstate: add a statistic for PHY
down events
> +struct ethtool_link_ext_stats {
> + /* Custom Linux statistic for PHY level link down events.
> + * In a simpler world it should be equal to netdev->carrier_down_count
> + * unfortunately netdev also counts local reconfigurations which don't
> + * actually take the physical link down, not to mention NC-SI which,
> + * if present, keeps the link up regardless of host state.
> + * This statistic counts when PHY _actually_ went down, or lost link.
> + */
> + u64 link_down_events;
Might be worth a comment why this is a u64 even when the uAPI has a
u32.
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists