aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/mcdi_functions.c
diff options
context:
space:
mode:
authorMaxime Chevallier <[email protected]>2024-08-21 15:09:59 +0000
committerDavid S. Miller <[email protected]>2024-08-23 12:04:34 +0000
commitc15e065b46dc4e19837275b826c1960d55564abd (patch)
treed39b2fbaac286550dd8d545d3ef5c0e2ed250a2d /drivers/cdx/controller/mcdi_functions.c
parentnet: sfp: Add helper to return the SFP bus name (diff)
downloadkernel-c15e065b46dc4e19837275b826c1960d55564abd.tar.gz
kernel-c15e065b46dc4e19837275b826c1960d55564abd.zip
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 passed phy_index. Add a helper that netlink command handlers need to use to grab the targeted PHY from the req_info. This helper needs to hold rtnl_lock() while interacting with the PHY, as it may be removed at any point. Signed-off-by: Maxime Chevallier <[email protected]> Reviewed-by: Christophe Leroy <[email protected]> Tested-by: Christophe Leroy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/mcdi_functions.c')
0 files changed, 0 insertions, 0 deletions