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
24 if [ -z "$DEST_IP" ]; then
25 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"
27 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
28 [ -z "$CLONE_SKB" ] && CLONE_SKB="0"
29 [ -z "$BURST" ] && BURST=32
30 [ -z "$COUNT" ] && COUNT="0" # Zero means indefinitely
31 if [ -n "$DEST_IP" ]; then
33 read -r DST_MIN DST_MAX <<< $(parse_addr${IP6} $DEST_IP)
35 if [ -n "$DST_PORT" ]; then
36 read -r UDP_DST_MIN UDP_DST_MAX <<< $(parse_ports $DST_PORT)
41 [ -z "$APPEND" ] && pg_ctrl "reset"
43 # Threads are specified with parameter -t value in $THREADS
48 [ -z "$APPEND" ] && pg_thread $thread "rem_device_all"
64 if [ -n "$DST_PORT" ]; then
71 [ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM"
73 # Setup source IP-addresses based on thread number
77 # Setup burst, for easy testing -b 0 disable bursting
78 # (internally in pktgen default and minimum burst=1)
79 if [[ ${BURST} -ne 0 ]]; then
80 pg_set $dev "burst $BURST"
82 info "$dev: Not using burst"
87 # Run if user hits control-c
93 cat /proc/net/pktgen/$dev | grep -A2 "Result:"
96 # trap keyboard interrupt (Ctrl-C)
99 if [ -z "$APPEND" ]; then