]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/main.c
net/softnic: support service cores
[dpdk.git] / app / test-crypto-perf / main.c
index 55d97c26b60beef392194136bc4c9f99d17d8e69..953e058c992068d6f46b56d69026cf4c18a64a44 100644 (file)
@@ -342,7 +342,9 @@ cperf_check_test_vector(struct cperf_options *opts,
                                return -1;
                        if (test_vec->ciphertext.length < opts->max_buffer_size)
                                return -1;
-                       if (test_vec->cipher_iv.data == NULL)
+                       /* Cipher IV is only required for some algorithms */
+                       if (opts->cipher_iv_sz &&
+                                       test_vec->cipher_iv.data == NULL)
                                return -1;
                        if (test_vec->cipher_iv.length != opts->cipher_iv_sz)
                                return -1;