[LS1046] How to check optic 10G SFP+ link status(up/down)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[LS1046] How to check optic 10G SFP+ link status(up/down)

651 Views
changjake
Contributor II

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.

Tags (2)
0 Kudos
1 Reply

637 Views
yipingwang
NXP TechSupport
NXP TechSupport

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.

0 Kudos