Ethernet Products
Determine ramifications of Intel® Ethernet products and technologies
4865 Discussions

Ethernet link goes down randomly with e1000e driver

idata
Employee
2,789 Views

I have a PC (Lanner LEC2220P) with two Intel NICs on board and one in a PCIe slot.

$ lspci | grep Ethernet

01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

The first one is connected to a 10/100 embedded device, the second one to PC with a 1Gb NIC, and the last one to a GigE camera. No switches in between. The problem occurs in a similar way in four identical systems. Thus, I believe we can rule out hardware failures.

The operating system in question is Debian Squeeze, running Linux kernel 2.6.32-5-amd64 by default. It comes with an old e1000e driver module.

Most of the time, the connections work fine. However, any of the three devices may go down after a seemingly random amount of time with no clear reason. What I see in system logs is this:

Aug 17 22:08:56 XXX kernel: [22144.179804] e1000e: eth0 NIC Link is Down

Aug 17 22:08:57 XXX kernel: [22145.806317] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: Rx/Tx

Aug 17 22:08:57 XXX kernel: [22145.806321] e1000e 0000:01:00.0: eth0: 10/100 speed: disabling TSO

Sometimes, it is only one of the devices (in this case eth0), sometimes two, sometimes all three. The order in which the links go down follows no pattern. After the failure, the link seems to recover, but it makes the camera to lose some data, and its connection.

I updated the e1000e driver to the latest one found on Intel's site (2.0.0.1). I used "make CFLAGS_EXTRA=-DDISABLE_PM install" to disable power management because this was suggested by some people who had had problems with the driver. The new driver loaded fine but didn't solve the problem.

I tried setting InterruptThrottleRate=3000,3000,3000 to module parameters. No luck. Setting the rate to 10000 however seemed to increase the frequency of the problem.

Then, I updated the Linux kernel to 3.2.0 and recompiled the driver as well. That didn't help either, and now I'm out of ideas. Is there anything else I could try out?

Update

It seemed to be the new kernel rather than the InterruptThrottleRate setting that made the problem more frequent. Before kernel update, the problem occured about every 8 hours on average. After the update, the time went closer to half an hour.

Another thing I forgot to mention that I have disabled both pcie_aspm and acpi at boot. Since PM is also disabled in the driver at compile time, it is unlikely that this is a power management issue.

0 Kudos
2 Replies
DHalt
Beginner
1,793 Views

question is don't solved? my ethernet card state down / up:

[Sat Mar 28 12:42:00 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:43:09 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:43:17 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:43:19 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:43:22 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:43:25 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:43:28 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:44:59 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:45:07 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:45:10 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:45:13 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 12:45:15 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 12:59:14 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 13:00:10 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 13:12:38 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 13:12:42 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 13:12:52 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 13:12:55 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

[Sat Mar 28 13:12:57 2015] e1000e: eth1 NIC Link is Down

[Sat Mar 28 13:13:00 2015] e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

$ ethtool -i eth1

driver: e1000e

version: 3.1.0.2-NAPI

firmware-version: 2.1-0

bus-info: 0000:02:00.0

supports-statistics: yes

supports-test: yes

supports-eeprom-access: yes

supports-register-dump: yes

supports-priv-flags: no

 

$ lspci | grep -i eth

02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection

0 Kudos
SYeo3
Valued Contributor I
1,793 Views

Hi Topi Mäenpää,

Thank you for contacting Intel.

I understand you are experiencing intermittent network connections with your current settings. Base on the logs you've provided, I suggest to disable Flow Control. We do not need this function since the ports are connected directly to another device or PC.

Hope this help resolve your connection issues.

Sincerely,

Sandy

0 Kudos
Reply