All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, linux@armlinux.org.uk, olteanv@gmail.com,
	hkallweit1@gmail.com, f.fainelli@gmail.com, saeedm@nvidia.com,
	michael.chan@broadcom.com
Subject: Re: [RFC net-next] net: track locally triggered link loss
Date: Sat, 21 May 2022 16:23:16 +0200	[thread overview]
Message-ID: <Yoj11Kv55HX3k/Ou@lunn.ch> (raw)
In-Reply-To: <20220520150256.5d9aed65@kernel.org>

> For a system which wants to monitor link quality on the local end =>
> i.e. whether physical hardware has to be replaced - differentiating
> between (1) and (2) doesn't really matter, they are both non-events.

Maybe data centres should learn something from the automotive world.
It seems like most T1 PHYs have a signal quality value, which is
exposed via netlink in the link info message. And it is none invasive.

Many PHYs also have counters of receive errors, framing errors
etc. These can be reported via ethtool --phy-stats.

SFPs expose SNR ratios in their module data, transmit and receive
powers etc, via ethtool -m and hwmon.

There is also ethtool --cable-test. It is invasive, in that it
requires the link to go down, but it should tell you about broken
pairs. However, you probably know that already, a monitoring system
which has not noticed the link dropping to 100Mbps so it only uses two
pairs is not worth the money you paired for it.

Now, it seems like very few, if any, firmware driven Ethernet card
actually make use of these features. You need cards which Linux is
actually driving the hardware. But these APIs are available for
anybody to use. Don't data centre users have enough purchasing power
they can influence firmware/driver writers to actually use these APIs?
And i think the results would be better than trying to count link
up/down.

     Andrew

  reply	other threads:[~2022-05-21 14:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20  0:45 [RFC net-next] net: track locally triggered link loss Jakub Kicinski
2022-05-20 12:24 ` Andrew Lunn
2022-05-20 18:14   ` Jakub Kicinski
2022-05-20 18:48     ` Andrew Lunn
2022-05-20 22:02       ` Jakub Kicinski
2022-05-21 14:23         ` Andrew Lunn [this message]
2022-05-21 18:26           ` Jakub Kicinski
2022-05-20 22:08       ` Saeed Mahameed
2022-05-20 23:03         ` Jakub Kicinski
2022-05-21  5:08           ` Saeed Mahameed
2022-05-21 18:38             ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Yoj11Kv55HX3k/Ou@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=f.fainelli@gmail.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=michael.chan@broadcom.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=saeedm@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.