summaryrefslogtreecommitdiff
path: root/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-05-28 16:06:35 +0200
committerJakub Kicinski <kuba@kernel.org>2021-05-28 14:52:13 -0700
commit460a9aa23de6eda55734411e3301838a9033b8b9 (patch)
treec7d30647972950442b464cba036337bd8efc83cd /samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh
parent38e9673ce08ff22ede59ecafb2626b7a5c009d30 (diff)
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-xsamples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh2
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"