Also ich versuch gerade PF_RING mit DNA zu installieren. Im Ordner war ein README file enthalten mit den folgenden Anweisungen:
Compilation and Installation ---------------------------- 1. compile PF_RING - untar the PF_RING distribution on your home directory (e.g. ~/PF_RING) - cd PF_RING - make 2. compile the DNA driver. Example for ixgbe do: - cd ./ixgbe/ixgbe-3.3.9-DNA/src/ - make 3. load PF_RING and the DNA driver - (as root) run ./load_dna_driver.sh Note that - you might need to change the interface names into your script - you can decide which adapters to enable as follows insmod ./e1000e.ko adapters_to_enable=dna0 where adapters_to_enable contains the list of adapters to enable with DNA
Meine frage bezieht sich auf das Veraendern des
load_dna_driver.sh
files mit folgendem Inhalt:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #!/bin/bash # Configure here the network interfaces to activate IF[0]=dna0 IF[1]=dna1 IF[2]= IF[3]= #service udev start # Remove old modules (if loaded) rmmod ixgbe rmmod pf_ring # We assume that you have compiled PF_RING insmod ../../../../kernel/pf_ring.ko # Set <id> as many times as the number of processors # Default #insmod ./ixgbe.ko # Disable multiqueue insmod ./ixgbe.ko RSS=0,0,0,0 # Configure the number of TX slots #insmod ./ixgbe.ko RSS=0,0,0,0 num_tx_slots=4096 # Enable 8 queues (you need 8 or more CPU cores) #insmod ./ixgbe.ko MQ=1,1 RSS=8,8 FdirMode=0,0 # Enable hw filters #insmod ./ixgbe.ko RSS=0,0,0,0 FdirMode=2,2,2,2 FdirPballoc=3,3,3,3 # Set a large MTU (jumbo frame) #insmod ./ixgbe.ko RSS=0,0,0,0 mtu=9000 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 |
Was genau muss ich denn aendern, wenn PF_RING+DNA auf dem eth2 Interface laufen soll?