diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-05-25 18:21:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-26 20:37:40 +0200 |
commit | 5568363f0cb358305b90ab3d3330f757943f6d0d (patch) | |
tree | 5ce5fec84fd49a6537238a6ea7b7cdcb63943455 /Documentation | |
parent | Merge branch 'RTM_GETROUTE--return-fib-result' (diff) | |
download | linux-5568363f0cb358305b90ab3d3330f757943f6d0d.tar.xz linux-5568363f0cb358305b90ab3d3330f757943f6d0d.zip |
net: phy: Create sysfs reciprocal links for attached_dev/phydev
There is currently no way for a program scanning /sys to know whether a
network device is attached to a particular PHY device, just like the PHY
device is not pointed back to its attached network device.
Create a symbolic link in the network device's namespace named "phydev"
which points to the PHY device and create a symbolic link in the PHY
device's namespace named "attached_dev" that points back to the network
device. These links are set up during phy_attach_direct() and removed
during phy_detach() for symetry.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions