Skip to content

Commit 3342dc8

Browse files
Wei Fangkuba-moo
Wei Fang
authored andcommitted
samples: pktgen: correct dev to DEV
In the pktgen_sample01_simple.sh script, the device variable is uppercase 'DEV' instead of lowercase 'dev'. Because of this typo, the script cannot enable UDP tx checksum. Fixes: 460a9aa ("samples: pktgen: add UDP tx checksum support") Signed-off-by: Wei Fang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 671154f commit 3342dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/pktgen/pktgen_sample01_simple.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if [ -n "$DST_PORT" ]; then
7676
pg_set $DEV "udp_dst_max $UDP_DST_MAX"
7777
fi
7878

79-
[ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM"
79+
[ ! -z "$UDP_CSUM" ] && pg_set $DEV "flag UDPCSUM"
8080

8181
# Setup random UDP port src range
8282
pg_set $DEV "flag UDPSRC_RND"

0 commit comments

Comments
 (0)