History

net: ethtool: netlink: Add support for triggering a cable test

Add new ethtool netlink calls to trigger the starting of a PHY cable test. Add Kconfig'ury to ETHTOOL_NETLINK so that PHYLIB is not a module when ETHTOOL_NETLINK is builtin, which would result in kernel linking errors. v2: Remove unwanted white space change Remove ethnl_cable_test_act_ops and use doit handler Rename cable_test_set_policy cable_test_act_policy Remove ETHTOOL_MSG_CABLE_TEST_ACT_REPLY v3: Remove ETHTOOL_MSG_CABLE_TEST_ACT_REPLY from documentation Remove unused cable_test_get_policy Add Reviewed-by tags v4: Remove unwanted blank line

Andrew Lunn committed 6 years ago

Commit 11ca3c41 parent 97c22437 files · +89 −2Browse files

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

Unified · Split

include/uapi/linux/ethtool_netlink.h+12−0
@@ -39,6 +39,7 @@ enum { · 38 unmodified lines
39 ETHTOOL_MSG_EEE_GET,39 ETHTOOL_MSG_EEE_GET,
40 ETHTOOL_MSG_EEE_SET,40 ETHTOOL_MSG_EEE_SET,
41 ETHTOOL_MSG_TSINFO_GET,41 ETHTOOL_MSG_TSINFO_GET,
42 ETHTOOL_MSG_CABLE_TEST_ACT,
42 43
43 /* add new constants above here */44 /* add new constants above here */
44 __ETHTOOL_MSG_USER_CNT,45 __ETHTOOL_MSG_USER_CNT,
@@ -405,6 +406,17 @@ enum { · 360 unmodified lines
405 ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1)406 ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1)
406};407};
407 408
409/* CABLE TEST */
410
411enum {
412 ETHTOOL_A_CABLE_TEST_UNSPEC,
413 ETHTOOL_A_CABLE_TEST_HEADER, /* nest - _A_HEADER_* */
414
415 /* add new constants above here */
416 __ETHTOOL_A_CABLE_TEST_CNT,
417 ETHTOOL_A_CABLE_TEST_MAX = __ETHTOOL_A_CABLE_TEST_CNT - 1
418};
419
408/* generic netlink info */420/* generic netlink info */
409#define ETHTOOL_GENL_NAME "ethtool"421#define ETHTOOL_GENL_NAME "ethtool"
410#define ETHTOOL_GENL_VERSION 1422#define ETHTOOL_GENL_VERSION 1