Re: [PATCH net-next v2] net-sysfs: expose number of carrier on/off changes
From: David Miller <davem@davemloft.net>
Date: 2014-03-31 20:25:25
Also in:
lkml
From: David Miller <davem@davemloft.net>
Date: 2014-03-31 20:25:25
Also in:
lkml
From: David Decotigny <redacted> Date: Sat, 29 Mar 2014 09:48:35 -0700
This allows to monitor carrier on/off transitions and detect link
flapping issues:
- new /sys/class/net/X/carrier_changes
- new rtnetlink IFLA_CARRIER_CHANGES (getlink)
Tested:
- grep . /sys/class/net/*/carrier_changes
+ ip link set dev X down/up
+ plug/unplug cable
- updated iproute2: prints IFLA_CARRIER_CHANGES
- iproute2 20121211-2 (debian): unchanged behavior
Signed-off-by: David Decotigny <redacted>Looks good, applied, thanks David.