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_sample06_numa_awared_queue_irq_affinity.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_sample06_numa_awared_queue_irq_affinity.sh')
-rwxr-xr-x | samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh b/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh index 10f1da571f40..7c27923083a6 100755 --- a/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh +++ b/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh @@ -92,6 +92,8 @@ for ((i = 0; i < $THREADS; i++)); do pg_set $dev "udp_dst_max $UDP_DST_MAX" fi + [ ! -z "$UDP_CSUM" ] && pg_set $dev "flag UDPCSUM" + # Setup random UDP port src range pg_set $dev "flag UDPSRC_RND" pg_set $dev "udp_src_min $UDP_SRC_MIN" |