Support for byte queue limits on various network interface cards.

Linux patches for byte queue limits on various network interface cards.
  1. check your current kernel version and dowload the source of it
    uname -r
    wget ftp://kernel.org/pub/linux/kernel/v3.x/linux-$VERSION.tar.xz
    xzcat linux-$VERSION.tar.xz | tar x
    cd linux-$VERSION
    
  2. this script would patch / replace the realtek r8169 driver on your system:
    #!/bin/sh
    
    cd /tmp
    
    # replace with your kernel version (at least 3.3.x)
    SYMVERS=`find /usr/src/linux-* -name 'Module.symvers'|head`
    KERNEL="linux-3.10.10"
    MODPATH="drivers/net/ethernet/realtek"
    MOD="r8169"
    
    # system modules (destination)
    MODULES="/lib/modules/`uname -r`/kernel/$MODPATH"
    
    # tar xzf $KERNEL.tar.gz
    
    cd $KERNEL || exit
    cp -f $SYMVERS Module.symvers || exit
    zcat /proc/config.gz > .config
    make oldconfig && make prepare && make modules_prepare || exit
    make M=$MODPATH || exit
    
    exit
    sudo modprobe -r $MOD
    sudo mv -f $MODULES/$MOD.ko.gz $MODULES/$MOD.ko.gz_orig
    sudo cp -v $MODPATH/$MOD.ko $MODULES/$MOD.ko
    sudo gzip -9 $MODULES/$MOD.ko
    sudo modprobe $MOD

    replace-mod.sh

I will work also on these drivers to support byte queue limits.
  • r8169 (testing)
  • via-rhine (testing)
  • via-velocity (testing)
  • 8139too (testing)
  • 3c59x (coding, testing)
  • natsemi (find the nic, I have such a nic somewhere ^^)
  • tulip (first try by George Spelvin), testing
Last modified on 2013-10-29 at 19:31