Skip to contentSkip to conversation

app/crypto-perf: fix display of sample test vector

PATCH Applied Adam Dybkowski 3 participants 3 messages Apr 29, 2020 – May 9, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/crypto-perf: fix display of sample test vector

This patch disables displaying sample test vector contents when executing throughput and latency tests as the sample data is not used in those tests (not copied to input mbuf in order to achieve better performance).

Fixes f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
---
 app/test-crypto-perf/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
app/test-crypto-perf/main.c +2 -1
index 52a1860fb..7bb286ccb 100644
@@ -582,7 +582,8 @@ main(int argc, char **argv)
 		goto err;
 	}
 
-	if (!opts.silent)
+	if (!opts.silent && opts.test != CPERF_TEST_TYPE_THROUGHPUT &&
+			opts.test != CPERF_TEST_TYPE_LATENCY)
 		show_test_vector(t_vec);
 
 	total_nb_qps = nb_cryptodevs * opts.nb_qps;
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines

-----Original Message-----
From: Dybkowski, AdamX <[email protected]>
Sent: Wednesday, April 29, 2020 11:57 AM
To: [email protected]; Trahe, Fiona <[email protected]>; [email protected]
Cc: Dybkowski, AdamX <[email protected]>; [email protected]
Subject: [PATCH] app/crypto-perf: fix display of sample test vector

This patch disables displaying sample test vector contents when executing throughput and latency tests as the sample data is not used in those tests (not copied to input mbuf in order to achieve better performance).

Quoted 4 lines
Fixes f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Applied
#2 lore raw
Quoted 5 lines
Quoted 5 lines

This patch disables displaying sample test vector contents when executing throughput and latency tests as the sample data is not used in those tests (not copied to input mbuf in order to achieve better performance).

Quoted 7 lines
Quoted 1 line
Fixes f8be1786b1b8 ("app/crypto-perf: introduce performance test

application")

Quoted 3 lines

Applied to dpdk-next-crypto

Thanks.