]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/cperf_test_throughput.c
app/crypto-perf: parse segment size
[dpdk.git] / app / test-crypto-perf / cperf_test_throughput.c
index d4aa84c49f9a23a5cd1f4185323b46cf7a0a3ab7..8d54642f2c9d415f1f61d266fbb27a683f15bfa3 100644 (file)
@@ -140,7 +140,7 @@ cperf_throughput_test_runner(void *test_ctx)
        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)