Lines Matching +full:last +full:- +full:interrupt +full:- +full:source
2 # SPDX-License-Identifier: GPL-2.0
8 # * flow variation via random UDP source port
11 source ${basedir}/functions.sh
14 # Required param: -i dev in $DEV
15 source ${basedir}/parameters.sh
20 [ -z "$COUNT" ] && COUNT="100000" # Zero means indefinitely
23 [ -z "$CLONE_SKB" ] && CLONE_SKB="0"
25 # Flow variation random source port between min and max
30 if [ -z "$DEST_IP" ]; then
31 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"
33 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
34 if [ -n "$DEST_IP" ]; then
36 read -r DST_MIN DST_MAX <<< $(parse_addr${IP6} $DEST_IP)
38 if [ -n "$DST_PORT" ]; then
39 read -r UDP_DST_MIN UDP_DST_MAX <<< $(parse_ports $DST_PORT)
43 # General cleanup everything since last run
44 [ -z "$APPEND" ] && pg_ctrl "reset"
46 # Threads are specified with parameter -t value in $THREADS
53 [ -z "$APPEND" ] && pg_thread $thread "rem_device_all"
74 if [ -n "$DST_PORT" ]; then
81 [ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM"
89 # Run if user hits control-c
95 cat /proc/net/pktgen/$dev | grep -A2 "Result:"
98 # trap keyboard interrupt (Ctrl-C)
101 if [ -z "$APPEND" ]; then