aesni_mb: fix wrong return value
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 15 Feb 2016 16:45:04 +0000 (16:45 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 24 Feb 2016 14:02:52 +0000 (15:02 +0100)
commita324c45a6fc263a553768ba278629bce82a101f3
tree32d23dee5f64c3449483bbc50accfe24a41cc6f5
parente57dcc3818796702d023c512f81a4efa86992c58
aesni_mb: fix wrong return value

cryptodev_aesni_mb_init was returning the device id of
the device just created, but rte_eal_vdev_init
(the function that calls the first one), was expecting 0 or
negative value.
This made impossible to create more than one aesni_mb device
from command line.

Fixes: 924e84f87306 ("aesni_mb: add driver for multi buffer based crypto")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
app/test/test_cryptodev.c
app/test/test_cryptodev_perf.c
doc/guides/rel_notes/release_16_04.rst
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
examples/l2fwd-crypto/main.c