summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/if_link.h
diff options
context:
space:
mode:
authorDavid Decotigny2018-01-18 18:59:13 +0100
committerDavid S. Miller2018-01-22 21:42:05 +0100
commitb2d3bcfa26a7a8de41f358a6cae8b848673b3c6e (patch)
tree539b5266ff43bf1f842d7cd7dea2c998dff98afd /include/uapi/linux/if_link.h
parentmacsec: restore uAPI after addition of GCM-AES-256 (diff)
downloadkernel-qcow2-linux-b2d3bcfa26a7a8de41f358a6cae8b848673b3c6e.tar.gz
kernel-qcow2-linux-b2d3bcfa26a7a8de41f358a6cae8b848673b3c6e.tar.xz
kernel-qcow2-linux-b2d3bcfa26a7a8de41f358a6cae8b848673b3c6e.zip
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>
Diffstat (limited to 'include/uapi/linux/if_link.h')
-rw-r--r--include/uapi/linux/if_link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
index f8f04fed6186..8616131e2c61 100644
--- a/include/uapi/linux/if_link.h
+++ b/include/uapi/linux/if_link.h
@@ -161,6 +161,8 @@ enum {
IFLA_EVENT,
IFLA_NEW_NETNSID,
IFLA_IF_NETNSID,
+ IFLA_CARRIER_UP_COUNT,
+ IFLA_CARRIER_DOWN_COUNT,
__IFLA_MAX
};