Some netlink commands are target towards ethernet PHYs, to control some of their features. As there's several such commands, add the ability to pass a PHY index in the ethnl request, which will populate the generic ethnl_req_info with the relevant phydev when the command targets a PHY.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -133,6 +133,7 @@ enum { · 132 unmodified lines | ||
| 133 | 133 | ETHTOOL_A_HEADER_DEV_INDEX, /* u32 */ |
| 134 | 134 | ETHTOOL_A_HEADER_DEV_NAME, /* string */ |
| 135 | 135 | ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */ |
| 136 | + ETHTOOL_A_HEADER_PHY_INDEX, /* u32 */ | |
| 136 | 137 | |
| 137 | 138 | /* add new constants above here */ |
| 138 | 139 | __ETHTOOL_A_HEADER_CNT, |