app/test-crypto-perf: fix check for cipher IV
authorAnoob Joseph <anoob.joseph@caviumnetworks.com>
Fri, 14 Sep 2018 09:24:48 +0000 (14:54 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 25 Sep 2018 15:57:25 +0000 (17:57 +0200)
commit3c78812b5082146f23af45784a04c37be9b90190
treedca17761ed7894870ee20a4780b73fff2a24e8aa
parentc864167ce97d91ed95c68f8f85cf2dbaaae212d3
app/test-crypto-perf: fix check for cipher IV

IV is not required for all ciphers. Making sure the null check is done
only when 'cipher_iv_sz' is non-zero.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org
Signed-off-by: Akash Saxena <akash.saxena@caviumnetworks.com>
Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test-crypto-perf/main.c