2 # SPDX-License-Identifier: GPL-2.0
12 result=`cat $PGDEV | fgrep "Result: OK:"`
13 if [ "$result" = "" ]; then
14 cat $PGDEV | fgrep Result:
18 # Config Start Here -----------------------------------------------------------
22 # Each CPU has its own thread. One CPU example. We add eth1.
23 # IPv6. Note increase in minimal packet length
25 PGDEV=/proc/net/pktgen/kpktgend_0
26 echo "Removing all devices"
27 pgset "rem_device_all"
29 pgset "add_device eth1"
33 # delay 0 means maximum speed.
35 # We need to do alloc for every skb since we cannot clone here.
36 CLONE_SKB="clone_skb 0"
38 # NIC adds 4 bytes CRC
39 PKT_SIZE="pkt_size 66"
41 # COUNT 0 means forever
43 COUNT="count 10000000"
46 PGDEV=/proc/net/pktgen/eth1
47 echo "Configuring $PGDEV"
52 pgset "dst6_min fec0::1"
53 pgset "dst6_max fec0::FFFF:FFFF"
55 pgset "dst_mac 00:04:23:08:91:dc"
58 PGDEV=/proc/net/pktgen/pgctrl
60 echo "Running... ctrl^C to stop"
64 cat /proc/net/pktgen/eth1