Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] eth0 link dropping (r8169 driver)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Thu Nov 29, 2012 6:15 am    Post subject: [Solved] eth0 link dropping (r8169 driver) Reply with quote

I upgraded to the stable openrc 0.11.5, and switched over to nfsmount from netmount. Now when I browse the web in Firefox, some sites fail to load randomly, and most requests will stall for a while on DNS lookups. Also, my NFS connection to a file server takes a ridiculous amount of time to read directory contents, among other operations. I'm on a wired network, so I don't suspect LAN issues. I didn't see this before the openrc upgrade, nor am I seeing it in Windows on any machine wired or wireless.

Is anybody else seeing this? Did I miss the net_sucks="true" setting in rc.conf? It's making me just want to boot to Windows, which subsequently makes me feel dirty.


Last edited by tharasix on Sun Dec 02, 2012 7:15 am; edited 2 times in total
Back to top
View user's profile Send private message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Sat Dec 01, 2012 5:52 pm    Post subject: Reply with quote

OK, so I don't think it's openrc. From my log file:

Quote:
Dec 01 11:43:43 [kernel] [ 7209.277180] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:45 [kernel] [ 7211.260099] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:47 [kernel] [ 7213.042139] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:48 [kernel] [ 7214.734341] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:50 [kernel] [ 7216.410128] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:51 [kernel] [ 7217.780126] r8169 0000:01:00.0: eth0: link up
Dec 01 11:43:54 [kernel] [ 7220.072289] r8169 0000:01:00.0: eth0: link up
Dec 01 11:44:10 [kernel] [ 7236.707242] r8169 0000:01:00.0: eth0: link up


And so on. I've tried different cables and tried putting a switch in between my laptop and router, and I can reduce the number of these, but not eliminate them. Longer cabling seems to make the problem worse. I haven't upgraded my kernel in a while. Still running 3.0.17-tuxonice-r1. The most recent stable tuxonice kernel is 3.0.25.

I'm suspecting my laptop hardware or the driver, though I have to assume the r8169 driver is pretty solid at this point. Any suggestions? I'll try a different laptop on this cable later tonight when I get a chance.
Back to top
View user's profile Send private message
tharasix
n00b
n00b


Joined: 06 Aug 2003
Posts: 46
Location: Minneapolis, MN

PostPosted: Sun Dec 02, 2012 7:13 am    Post subject: Reply with quote

tharasix wrote:
I'm suspecting my laptop hardware or the driver, though I have to assume the r8169 driver is pretty solid at this point. Any suggestions? I'll try a different laptop on this cable later tonight when I get a chance.


As it turns out, there's a long-standing bug in the autonegotiation code in the r8169 driver. Adding the file /etc/modprobe.d/r8169.conf with the contents below seems to do the trick:

Code:
# turn off autonegotiation on the r8169 ethernet driver
install r8169 /sbin/modprobe --ignore-install r8169 && /usr/sbin/ethtool -s eth0 autoneg off


Thanks to Eric who posted this suggestion here. Make sure you emerge ethtool as well.

I feel like the people who were reading this thread were just letting me Google for this problem myself, given the deafening silence. Well, if anybody else hits this problem, there ya go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum