diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-05-28 17:06:35 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-05-29 00:52:13 +0300 |
commit | 460a9aa23de6eda55734411e3301838a9033b8b9 (patch) | |
tree | c7d30647972950442b464cba036337bd8efc83cd /samples/pktgen/pktgen_sample03_burst_single_flow.sh | |
parent | 38e9673ce08ff22ede59ecafb2626b7a5c009d30 (diff) | |
download | linux-460a9aa23de6eda55734411e3301838a9033b8b9.tar.xz |
samples: pktgen: add UDP tx checksum support
Introduce k parameter in pktgen samples in order to toggle UDP tx
checksum
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/r/cf16417902062c6ea2fd3c79e00510e36a40c31a.1622210713.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/pktgen/pktgen_sample03_burst_single_flow.sh')
-rwxr-xr-x | samples/pktgen/pktgen_sample03_burst_single_flow.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/pktgen/pktgen_sample03_burst_single_flow.sh b/samples/pktgen/pktgen_sample03_burst_single_flow.sh index 5adcf954de73..ab87de440277 100755 --- a/samples/pktgen/pktgen_sample03_burst_single_flow.sh +++ b/samples/pktgen/pktgen_sample03_burst_single_flow.sh @@ -73,6 +73,8 @@ for ((thread = $F_THREAD; thread <= $L_THREAD; thread++)); do pg_set $dev "udp_dst_max $UDP_DST_MAX" fi + [ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM" + # Setup burst, for easy testing -b 0 disable bursting # (internally in pktgen default and minimum burst=1) if [[ ${BURST} -ne 0 ]]; then |