History

net: ethtool: Add new power limit get and set features

This patch expands the status information provided by ethtool for PSE c33 with available power limit and available power limit ranges. It also adds a call to pse_ethtool_set_pw_limit() to configure the PSE control power limit.

Kory Maincent (Dent Project) committed 2 years ago

Commit 30d7b671 parent 4a83abc4 files · +141 −25Browse files

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

Unified · Split

include/uapi/linux/ethtool_netlink.h+8−0
@@ -930,6 +930,12 @@ enum { · 929 unmodified lines
930};930};
931 931
932/* Power Sourcing Equipment */932/* Power Sourcing Equipment */
933enum {
934 ETHTOOL_A_C33_PSE_PW_LIMIT_UNSPEC,
935 ETHTOOL_A_C33_PSE_PW_LIMIT_MIN, /* u32 */
936 ETHTOOL_A_C33_PSE_PW_LIMIT_MAX, /* u32 */
937};
938
933enum {939enum {
934 ETHTOOL_A_PSE_UNSPEC,940 ETHTOOL_A_PSE_UNSPEC,
935 ETHTOOL_A_PSE_HEADER, /* nest - _A_HEADER_* */941 ETHTOOL_A_PSE_HEADER, /* nest - _A_HEADER_* */
@@ -943,6 +949,8 @@ enum { · 7 unmodified lines
943 ETHTOOL_A_C33_PSE_ACTUAL_PW, /* u32 */949 ETHTOOL_A_C33_PSE_ACTUAL_PW, /* u32 */
944 ETHTOOL_A_C33_PSE_EXT_STATE, /* u32 */950 ETHTOOL_A_C33_PSE_EXT_STATE, /* u32 */
945 ETHTOOL_A_C33_PSE_EXT_SUBSTATE, /* u32 */951 ETHTOOL_A_C33_PSE_EXT_SUBSTATE, /* u32 */
952 ETHTOOL_A_C33_PSE_AVAIL_PW_LIMIT, /* u32 */
953 ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES, /* nest - _C33_PSE_PW_LIMIT_* */
946 954
947 /* add new constants above here */955 /* add new constants above here */
948 __ETHTOOL_A_PSE_CNT,956 __ETHTOOL_A_PSE_CNT,