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
930930 };
931931
932932 /* Power Sourcing Equipment */
933+enum {
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+
933939 enum {
934940 ETHTOOL_A_PSE_UNSPEC,
935941 ETHTOOL_A_PSE_HEADER, /* nest - _A_HEADER_* */
@@ -943,6 +949,8 @@ enum { · 7 unmodified lines
943949 ETHTOOL_A_C33_PSE_ACTUAL_PW, /* u32 */
944950 ETHTOOL_A_C33_PSE_EXT_STATE, /* u32 */
945951 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_* */
946954
947955 /* add new constants above here */
948956 __ETHTOOL_A_PSE_CNT,