cryptodev: fix loop in device query
authorFan Zhang <roy.fan.zhang@intel.com>
Wed, 11 Jan 2017 14:09:47 +0000 (14:09 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 18 Jan 2017 20:48:56 +0000 (21:48 +0100)
commitc5b70818adf02f97f049c2b2b3206e89d6f6c64b
tree0028b509e9ee506637ee09aebbddd4af9d7b9567
parent5d63ef31d8a51bb318d10c4d0ce99cc4184a6d70
cryptodev: fix loop in device query

This patch fixes the dev value update problem in
rte_cryptodev_pmd_get_named_dev, orginally, dev won't be updated
after the initial step in the loop.

Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
lib/librte_cryptodev/rte_cryptodev_pmd.h