Lines Matching +full:burst +full:- +full:read
2 # SPDX-License-Identifier: GPL-2.0
5 # - developed for benchmarking ingress qdisc path
16 # ------------------------------------------------------------------
24 # (3) ingress on this dev, handle_ing() -> tc_classify()
42 if [ -z "$DEST_IP" ]; then
43 [ -z "$IP6" ] && DEST_IP="198.18.0.42" || DEST_IP="FD00::1"
45 [ -z "$DST_MAC" ] && DST_MAC="90:e2:ba:ff:ff:ff"
46 [ -z "$BURST" ] && BURST=1024
47 [ -z "$COUNT" ] && COUNT="10000000" # Zero means indefinitely
48 if [ -n "$DEST_IP" ]; then
50 read -r DST_MIN DST_MAX <<< $(parse_addr${IP6} $DEST_IP)
52 if [ -n "$DST_PORT" ]; then
53 read -r UDP_DST_MIN UDP_DST_MAX <<< $(parse_ports $DST_PORT)
60 # Threads are specified with parameter -t value in $THREADS
82 if [ -n "$DST_PORT" ]; then
92 # Burst allow us to avoid measuring SKB alloc/free overhead
93 pg_set $dev "burst $BURST"
96 # Run if user hits control-c
102 cat /proc/net/pktgen/$dev | grep -A2 "Result:"
105 # trap keyboard interrupt (Ctrl-C)