Lines Matching +full:0 +full:- +full:indexed

2 # SPDX-License-Identifier: GPL-2.0
8 echo "Usage: $0 [-vx] -i ethX"
9 echo " -i : (\$DEV) output interface/device (required)"
10 echo " -s : (\$PKT_SIZE) packet size"
11 echo " -d : (\$DEST_IP) destination IP. CIDR (e.g. 198.18.0.0/15) is also allowed"
12 echo " -m : (\$DST_MAC) destination MAC-addr"
13 echo " -p : (\$DST_PORT) destination PORT range (e.g. 433-444) is also allowed"
14 echo " -k : (\$UDP_CSUM) enable UDP tx checksum"
15 echo " -t : (\$THREADS) threads to start"
16 echo " -f : (\$F_THREAD) index of first thread (zero indexed CPU number)"
17 echo " -c : (\$SKB_CLONE) SKB clones send before alloc new SKB"
18 echo " -n : (\$COUNT) num messages to send per thread, 0 means indefinitely"
19 echo " -b : (\$BURST) HW level bursting of SKBs"
20 echo " -v : (\$VERBOSE) verbose"
21 echo " -x : (\$DEBUG) debug"
22 echo " -6 : (\$IP6) IPv6"
23 echo " -w : (\$DELAY) Tx Delay value (ns)"
24 echo " -a : (\$APPEND) Script will not reset generator's state, but will append its config"
28 ## --- Parse command line arguments / parameters ---
54 info "Index of first thread (zero indexed CPU number): $F_THREAD"
101 shift $(( $OPTIND - 1 ))
103 if [ -z "$PKT_SIZE" ]; then
109 if [ -z "$F_THREAD" ]; then
110 # First thread (F_THREAD) reference the zero indexed CPU number
111 export F_THREAD=0
114 if [ -z "$THREADS" ]; then
119 [ -z "$DELAY" ] && export DELAY=0 # Zero means max speed
121 export L_THREAD=$(( THREADS + F_THREAD - 1 ))
123 if [ -z "$DEV" ]; then
128 if [ -z "$DST_MAC" ]; then
132 if [ -z "$DEST_IP" ]; then
136 if [ ! -d /proc/net/pktgen ]; then