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. Signed-off-by:Maxime Chevallier <maxime.chevallier@bootlin.com> Reviewed-by:
Andrew Lunn <andrew@lunn.ch> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/ethtool-netlink.rst 7 additions, 0 deletionsDocumentation/networking/ethtool-netlink.rst
- include/uapi/linux/ethtool_netlink.h 1 addition, 0 deletionsinclude/uapi/linux/ethtool_netlink.h
- net/ethtool/netlink.c 46 additions, 2 deletionsnet/ethtool/netlink.c
- net/ethtool/netlink.h 5 additions, 0 deletionsnet/ethtool/netlink.h
Please register or sign in to comment