History

net: ethtool: Allow passing a phy index for some commands

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.

Maxime Chevallier committed 2 years ago

Commit 2ab0edb1 parent dedd7024 files · +37 −2Browse files

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

Unified · Split

include/uapi/linux/ethtool_netlink.h+1−0
@@ -133,6 +133,7 @@ enum { · 132 unmodified lines
133133 ETHTOOL_A_HEADER_DEV_INDEX, /* u32 */
134134 ETHTOOL_A_HEADER_DEV_NAME, /* string */
135135 ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */
136+ ETHTOOL_A_HEADER_PHY_INDEX, /* u32 */
136137
137138 /* add new constants above here */
138139 __ETHTOOL_A_HEADER_CNT,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t