summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2024-08-21 18:09:59 +0300
committerDavid S. Miller <davem@davemloft.net>2024-08-23 15:04:34 +0300
commitc15e065b46dc4e19837275b826c1960d55564abd (patch)
treed39b2fbaac286550dd8d545d3ef5c0e2ed250a2d /drivers/fpga/fpga-mgr.c
parent0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1 (diff)
downloadlinux-c15e065b46dc4e19837275b826c1960d55564abd.tar.xz
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 <maxime.chevallier@bootlin.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Tested-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions