app/crypto-perf: parse segment size
[dpdk.git] / app / test-crypto-perf / cperf_test_latency.c
index eea2900..2dc9c0c 100644 (file)
@@ -178,7 +178,7 @@ cperf_latency_test_runner(void *arg)
        int linearize = 0;
 
        /* Check if source mbufs require coalescing */
-       if (ctx->options->segments_nb > 1) {
+       if (ctx->options->segment_sz < ctx->options->max_buffer_size) {
                rte_cryptodev_info_get(ctx->dev_id, &dev_info);
                if ((dev_info.feature_flags &
                                RTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER) == 0)