test/crypto: create only one virtual device if needed
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 18 Apr 2017 11:39:38 +0000 (12:39 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 20 Apr 2017 09:32:45 +0000 (11:32 +0200)
commit8fec4832c95f82806f947389799f8ae54fb79421
tree5f3bf07f914de7f6fe7d154fed8728acfafac22b
parent44e2980b70d14cf287779bd53a162b81d94e23cf
test/crypto: create only one virtual device if needed

Instead of creating two virtual devices per PMD, if they have not
been initialized from EAL already, create only one, as only the
first device is used for the crypto tests.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
test/test/test_cryptodev.c
test/test/test_cryptodev_perf.c