[RTnet-users] rt_e1000e carrier
Brought to you by:
bet-frogger,
kiszka
From: Elker C. <elk...@gm...> - 2014-06-25 09:54:15
|
Hi I'm using RTNet-0.9.13 with RTAI-3.9.2; my embedded pc has two e1000e ethernet ports (so rt_e1000e is employed). The first port is configured as standard linux (eth1), second port gets configured to rtnet (firstly unbinded by linux driver, then configured as rteth0). So far I'm working correctly in rtnet side; I'm also using rtcap and configured rteth0 on linux side and tcpdump works great to sniff realtime packets. Now I want to detect if carrier is lost on rtnet port; on linux managed ethernet port looking at /sys/class/net/eth1/carrier I can detect link loss, however in /sys/class/net/rteth0/carrier I always get link active even on cable disconnected. Digging into code I can see carrier detected and managed in rtdev->link_state, but I can't find the link to the sys filesystem or an ioctl call to detect link status. Is possible to detect link status on rt_e1000e driver? If not, can someone point to some code to implement this? Thanks, Elker |