Lines Matching +full:fixed +full:- +full:burst
2 # SPDX-License-Identifier: GPL-2.0
4 # Script will generate one flow per thread (-t N)
5 # - Same destination IP
6 # - Fake source IPs for each flow (fixed based on thread number)
10 # separate-flow should not access shared variables/data. This script
20 [ -z "$DEST_IP" ] && DEST_IP="198.18.0.42"
21 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
22 [ -z "$CLONE_SKB" ] && CLONE_SKB="0"
23 [ -z "$BURST" ] && BURST=32
24 [ -z "$COUNT" ] && COUNT="0" # Zero means indefinitely
25 if [ -n "$DEST_IP" ]; then
27 read -r DST_MIN DST_MAX <<< $(parse_addr $DEST_IP)
29 if [ -n "$DST_PORT" ]; then
30 read -r UDP_DST_MIN UDP_DST_MAX <<< $(parse_ports $DST_PORT)
40 # Threads are specified with parameter -t value in $THREADS
61 if [ -n "$DST_PORT" ]; then
68 # Setup source IP-addresses based on thread number
72 # Setup burst, for easy testing -b 0 disable bursting
73 # (internally in pktgen default and minimum burst=1)
74 if [[ ${BURST} -ne 0 ]]; then
75 pg_set $dev "burst $BURST"
77 info "$dev: Not using burst"
82 # Run if user hits control-c
88 cat /proc/net/pktgen/$dev | grep -A2 "Result:"
91 # trap keyboard interrupt (Ctrl-C)