blob: 10db28c18252d4e7458fc40511d80431e80b0c37 [file] [log] [blame]
#!/bin/bash
# Configure here the network interfaces to activate
IF[0]=dna0
IF[1]=dna1
IF[2]=dna2
IF[3]=dna3
#service udev start
# Remove old modules (if loaded)
rmmod igb
rmmod pf_ring
# We assume that you have compiled PF_RING
insmod ../../../../kernel/pf_ring.ko
# Default
#insmod ./igb.ko
# Disable multiqueue
insmod ./igb.ko
# Enable 8 queues (you need 8 or more CPU cores)
#insmod ./igb.ko RSS=8,8,8,8
sleep 1
killall irqbalance
for index in 0 1 2 3
do
if [ -z ${IF[index]} ]; then
continue
fi
printf "Configuring %s\n" "${IF[index]}"
ifconfig ${IF[index]} up
sleep 1
bash ../scripts/set_irq_affinity.sh ${IF[index]}
# ethtool -A ${IF[index]} autoneg off
# ethtool -A ${IF[index]} rx off
# ethtool -A ${IF[index]} tx off
# ethtool -s ${IF[index]} speed 10000
done