Hi, I have a LS1046A-RDB_revB and I want to check link status of SFP+ port.
I checked in console linux shell;
--------------------------------
# cat /sys/class/net/eth2/operstate
up
---------------------------------
It's alway '1', regardless real link status changed.
But, it's changed in eth1 (10G Base-T ethernet).
Is there any implementation or function in kernel device driver to update link status of SFP+ port?
Which register can I check for the link status changed?
Regards,
Jake.
In dts file, 10G SFP+ port is defined as the following
ethernet@f2000 {
fixed-link = <0 1 1000 0 0>;
phy-connection-type = "xgmii";
};
So the result of /sys/class/net/eth2/operstate is always up.