summaryrefslogtreecommitdiffstats
path: root/net/ethtool/netlink.c
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2024-08-21 17:09:58 +0200
committerDavid S. Miller <davem@davemloft.net>2024-08-23 14:04:34 +0200
commit0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1 (patch)
treeb832b201de1e60accc9aed5e89535c37ed6e61e7 /net/ethtool/netlink.c
parentnet: phy: add helpers to handle sfp phy connect/disconnect (diff)
downloadlinux-0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1.tar.xz
linux-0a2f7de0f3b96c4a30e56d2c79f8d812f89599a1.zip
net: sfp: Add helper to return the SFP bus name
Knowing the bus name is helpful when we want to expose the link topology to userspace, add a helper to return the SFP bus name. This call will always be made while holding the RTNL which ensures that the SFP driver won't unbind from the device. The returned pointer to the bus name will only be used while RTNL is held. Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Suggested-by: "Russell King (Oracle)" <linux@armlinux.org.uk> 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 'net/ethtool/netlink.c')
0 files changed, 0 insertions, 0 deletions