History

net-sysfs: expose number of carrier on/off changes

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

david decotigny committed 12 years ago

Commit 2d3b4791 parent 9c76a115 files · +22 −1Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/if_link.h+1−0
@@ -144,6 +144,7 @@ enum { · 143 unmodified lines
144 IFLA_NUM_RX_QUEUES,144 IFLA_NUM_RX_QUEUES,
145 IFLA_CARRIER,145 IFLA_CARRIER,
146 IFLA_PHYS_PORT_ID,146 IFLA_PHYS_PORT_ID,
147 IFLA_CARRIER_CHANGES,
147 __IFLA_MAX148 __IFLA_MAX
148};149};
149 150