-
- Downloads
net: core: Expose number of link up/down transitions
Expose the number of times the link has been going UP or DOWN, and update the "carrier_changes" counter to be the sum of these two events. While at it, also update the sysfs-class-net documentation to cover: carrier_changes (3.15), carrier_up_count (4.16) and carrier_down_count (4.16) Signed-off-by:David Decotigny <decot@googlers.com> [Florian: * rebase * add documentation * merge carrier_changes with up/down counters] Signed-off-by:
Florian Fainelli <f.fainelli@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/ABI/testing/sysfs-class-net 24 additions, 0 deletionsDocumentation/ABI/testing/sysfs-class-net
- include/linux/netdevice.h 4 additions, 2 deletionsinclude/linux/netdevice.h
- include/uapi/linux/if_link.h 2 additions, 0 deletionsinclude/uapi/linux/if_link.h
- net/core/net-sysfs.c 24 additions, 1 deletionnet/core/net-sysfs.c
- net/core/rtnetlink.c 11 additions, 2 deletionsnet/core/rtnetlink.c
- net/sched/sch_generic.c 2 additions, 2 deletionsnet/sched/sch_generic.c
Loading
Please register or sign in to comment