Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

NSA310 testing the realtek r8168 driver (1 reply)

$
0
0
I've noticed that on ZyXEL OS 45 MB/s read and 40 MB/s write is possible.
on debian, only 20 - 25 MB/s read and 35 - 38 MB/s write is possible.

the "r8169 driver is built into the kernel so I have to change this.

I'm using the stock kernel 4.2 sources + patch and the r8169 driver is built as module
Now, I could unload / blackist it and use the r8168 driver.


http://pastebin.com/ZkAzBbHX <-bootlog with newer U-Boot and the "r8169 as module:

lsmod | grep r8169
r8169                  58444  0

after unloading, I can use the built r8168.

modprobe  r8168
[  798.429942] r8168 Gigabit Ethernet driver 8.040.00-NAPI loaded
[  798.436796] r8168 0000:01:00.0: no MSI. Back to INTx.
[  798.448318] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[  798.460365] r8168  Copyright (C) 2015  Realtek NIC software team <nicfae@realtek.com> 
[  798.460365]  This program comes with ABSOLUTELY NO WARRANTY; for details, please see http://www.gnu.org/licenses/. 
[  798.460365]  This is free software, and you are welcome to redistribute it under certain conditions; see http://www.gnu.org/licenses/.

Now the situation is different:
high read and a bit slow write rates

- 52 - 67 MB/s read (depending on the OS)
- 27 - 32 MB/s write (depending on the OS)

perhaps I could change something bei passing some option(s) to the module

 modinfo r8168
filename:       /lib/modules/4.2.0-rm-1/kernel/drivers/net/ethernet/realtek/r8168.ko
version:        8.040.00-NAPI
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver
author:         Realtek and the Linux r8168 crew <netdev@vger.kernel.org>
srcversion:     BC1CAF8ECC36006913B85E5
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
depends:        
vermagic:       4.2.0-rm-1 preempt mod_unload modversions ARMv5 p2v8 
parm:           speed:force phy operation. Deprecated by ethtool (8). (ushort)
parm:           duplex:force phy operation. Deprecated by ethtool (8). (int)
parm:           autoneg:force phy operation. Deprecated by ethtool (8). (int)
parm:           aspm:Enable ASPM. (int)
parm:           s5wol:Enable Shutdown Wake On Lan. (int)
parm:           rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm:           timer_count:Timer Interrupt Interval. (int)
parm:           eee_enable:Enable Energy Efficient Ethernet. (int)
parm:           hwoptimize:Enable HW optimization function. (ulong)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)

Viewing all articles
Browse latest Browse all 3247

Trending Articles