Messages in this thread | | | From | Florian Fainelli <> | Date | Thu, 27 Mar 2014 22:56:10 -0700 | Subject | Re: [PATCH v1] net-sysfs: expose number of link up/down transitions |
| |
2014-03-27 22:17 GMT-07:00 Stephen Rothwell <sfr@canb.auug.org.au>: > Hi David, > > On Thu, 27 Mar 2014 21:35:00 -0700 David Decotigny <decot@googlers.com> wrote: >> >> Tested: >> grep . /sys/class/net/*/count_link_* >> + ip link set dev X down/up >> >> Signed-off-by: David Decotigny <decot@googlers.com> > > It is not a very enlightening commit message. You should tell us why we > should add this to the kernel.
This might be useful to detect unstable links for instance, by measuring how many link transitions you get, which could indicate that either your NIC or your link partner is at fault.
If possible this should come with a Documentation/ABI/testing/ entry, quite a lot of network sysfs attributes are lacking one at the moment, but there is no reason why this should continue. -- Florian
| |