History

ethtool: add PHY Fast Link Down support

This adds support for Fast Link Down as new PHY tunable. Fast Link Down reduces the time until a link down event is reported for 1000BaseT. According to the standard it's 750ms what is too long for several use cases. v2: - add comment describing the constants

Heiner Kallweit committed 7 years ago

Commit 3aeb0801 parent 7b7ed882 files · +10 −0Browse files

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

Unified · Split

include/uapi/linux/ethtool.h+8−0
@@ -252,9 +252,17 @@ struct ethtool_tunable { · 251 unmodified lines
252252 #define DOWNSHIFT_DEV_DEFAULT_COUNT 0xff
253253 #define DOWNSHIFT_DEV_DISABLE 0
254254
255+/* Time in msecs after which link is reported as down
256+ * 0 = lowest time supported by the PHY
257+ * 0xff = off, link down detection according to standard
258+ */
259+#define ETHTOOL_PHY_FAST_LINK_DOWN_ON 0
260+#define ETHTOOL_PHY_FAST_LINK_DOWN_OFF 0xff
261+
255262 enum phy_tunable_id {
256263 ETHTOOL_PHY_ID_UNSPEC,
257264 ETHTOOL_PHY_DOWNSHIFT,
265+ ETHTOOL_PHY_FAST_LINK_DOWN,
258266 /*
259267 * Add your fresh new phy tunable attribute above and remember to update
260268 * phy_tunable_strings[] in net/core/ethtool.c