11 result=`cat $PGDEV | fgrep "Result: OK:"`
12 if [ "$result" = "" ]; then
13 cat $PGDEV | fgrep Result:
17 # Config Start Here -----------------------------------------------------------
21 # Each CPU has own thread. Two CPU exammple. We add eth1, eth2 respectivly.
22 # IPv6. Note increase in minimal packet length
24 PGDEV=/proc/net/pktgen/kpktgend_0
25 echo "Removing all devices"
26 pgset "rem_device_all"
28 pgset "add_device eth1"
29 echo "Setting max_before_softirq 10000"
30 pgset "max_before_softirq 10000"
34 # delay 0 means maximum speed.
36 # We need to do alloc for every skb since we cannot clone here.
37 CLONE_SKB="clone_skb 0"
39 # NIC adds 4 bytes CRC
40 PKT_SIZE="pkt_size 66"
42 # COUNT 0 means forever
44 COUNT="count 10000000"
47 PGDEV=/proc/net/pktgen/eth1
48 echo "Configuring $PGDEV"
53 pgset "dst6_min fec0::1"
54 pgset "dst6_max fec0::FFFF:FFFF"
56 pgset "dst_mac 00:04:23:08:91:dc"
59 PGDEV=/proc/net/pktgen/pgctrl
61 echo "Running... ctrl^C to stop"
65 # Result can be vieved in /proc/net/pktgen/eth1