This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List of all the files stored | |
>> ls quick_boot_kernel | |
bzImage | |
System.map | |
config-3.16.0 | |
3.16.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy the files at appropriate location of the destination host. | |
>> cp -R quick_boot_kernel/3.16.0 /lib/modules/ | |
>> cp quick_boot_kernel/config-3.16.0 /boot/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> cd quick_boot_kernel | |
>> /sbin/installkernel 3.16.0 bzImage System.map "/boot" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to linux kernel source code | |
# This kernel is already compiled and installed | |
# on the given host | |
>> cd /mnt/local/linux-3.16 | |
# Edit the network driver code | |
>> vim drivers/net/ethernet/intel/igb/igb_main.c | |
# Compile the module | |
>> make -C /lib/modules/`uname -r`/build M=drivers/net/ethernet/intel/igb | |
# Install the module | |
>> make -C /lib/modules/`uname -r`/build INSTALL_MOD_DIR=kernel/drivers/net/ethernet/intel/igb M=drivers/net/ethernet/intel/igb modules_install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ls /lib/modules/3.16.0/kernel/drivers/net/ethernet/intel/igb/igb.ko |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check your NIC card | |
>> lspci | awk '/net/ {print $1}' | xargs -i% lspci -ks % | |
>> lspci | grep -i net | |
>> sudo lshw -c network | |
# Determine which driver is currently running | |
>> ls -l /sys/class/net/<devname>/device/driver/module | |
../../../../module/e1000e | |
>> ls -l /sys/class/net/<devname>/device/driver | |
../../../../../bus/pci/drivers/e1000e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download the ethtool | |
>> wget https://www.kernel.org/pub/software/network/ethtool/ethtool-3.16.tar.gz | |
# Get attributes of the NIC | |
>> ethtool -t eth0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check the offloading values | |
>> ethtool --show-offload eth0 | |
Offload parameters for eth1: | |
rx-checksumming: on | |
tx-checksumming: on | |
scatter-gather: on | |
tcp-segmentation-offload: on | |
udp-fragmentation-offload: off | |
generic-segmentation-offload: on | |
generic-receive-offload: on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> sudo ethtool --offload eth1 rx off tx off | |
>> sudo ethtool -K eth1 gso off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> sudo ethtool -G eth1 tx 64 |