]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - samples/pktgen/pktgen.conf-1-1-ip6
11 result
=`cat $PGDEV | fgrep "Result: OK:"`
12 if [ "$result" = "" ]; then
13 cat $PGDEV | fgrep Result
:
22 # Config Start Here -----------------------------------------------------------
26 # Each CPU has own thread. Two CPU exammple. We add eth1, eth2 respectivly.
27 # IPv6. Note increase in minimal packet length
29 PGDEV
=/proc
/net
/pktgen
/kpktgend_0
30 echo "Removing all devices"
31 pgset
"rem_device_all"
33 pgset
"add_device eth1"
34 echo "Setting max_before_softirq 10000"
35 pgset
"max_before_softirq 10000"
41 CLONE_SKB
="clone_skb 1000000"
42 # NIC adds 4 bytes CRC
43 PKT_SIZE
="pkt_size 66"
45 # COUNT 0 means forever
47 COUNT
="count 10000000"
50 PGDEV
=/proc
/net
/pktgen
/eth1
51 echo "Configuring $PGDEV"
58 pgset
"dst_mac 00:04:23:08:91:dc"
61 PGDEV
=/proc
/net
/pktgen
/pgctrl
63 echo "Running... ctrl^C to stop"
67 # Result can be vieved in /proc/net/pktgen/eth1