[etherlab-dev] e1000e link detection issues with kernel 3.14
Christoph Permes
christoph.permes at knapp.com
Wed Jul 6 12:04:26 CEST 2016
Hi,
I am experiencing problems with link detection in the e1000e driver using the
3.14 kernel and the latest stable-1.5 master. Once link is down the driver
does not detect link when plugging the cable back in. Link is only detected
again when restarting the EtherCAT master.
This seems to happen only with certain e1000e network cards (e.g. 82574L) and
works fine with some other (e.g. 82573L, I218-LM).
After checking the e1000e code I noticed that there has been a change in the
original driver between kernel 3.8 and 3.10 affecting link detection in the
e1000_watchdog function (the change has been reverted in kernel 3.16).
With these changes a check for adapter->ecdev got lost in the EtherCAT capable
drivers starting with kernel 3.10.
I have created some patches for kernel 3.14 and 3.16 that fix the problem for
me, the 3.14 patches should also work for 3.10 and 3.12.
e1000e-3.16-link-detection.patch adds the missing check for adapter->ecdev.
e1000e-3.14-link-detection-v1.patch adds the missing check for adapter->ecdev.
e1000e-3.14-link-detection-v2.patch adds the missing check for adapter->ecdev
and contains the backport of the reverted change in kernel 3.16, I'm not
completely sure if v1 or v2 is the more "correct" one.
Best regards
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e1000e-3.16-link-detection.patch
Type: text/x-diff
Size: 868 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20160706/fce134e9/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e1000e-3.14-link-detection-v1.patch
Type: text/x-diff
Size: 919 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20160706/fce134e9/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e1000e-3.14-link-detection-v2.patch
Type: text/x-diff
Size: 1916 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20160706/fce134e9/attachment-0002.patch>
More information about the etherlab-dev
mailing list