app/crypto-perf: fix excess crypto device error
authorHemant Agrawal <hemant.agrawal@nxp.com>
Mon, 2 Apr 2018 15:33:15 +0000 (21:03 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 23 Apr 2018 17:20:09 +0000 (18:20 +0100)
commitdc476f122d9d80173a3b2b68870dc9f334f296c3
treeba952addc1d10772a38c9b7827bbe380fb24f7cf
parentb0abcc69447ccbf2ee415c0ed3a09ad1484653a2
app/crypto-perf: fix excess crypto device error

If number of available devices are more than logical core,
there is no need to throw an error.
Just use the less number of devices instead.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-crypto-perf/main.c