vhost/crypto: fix inferred misuse of enum
authorFan Zhang <roy.fan.zhang@intel.com>
Wed, 15 May 2019 16:09:11 +0000 (17:09 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit4349d412afe4ec25b43867f4d6d4672156cb5766
treeb7a98f9414f5be702275cc1cc745e1c2c8e17b64
parent1a92c9632bf8106dbf5afd0df159612cee7f6b76
vhost/crypto: fix inferred misuse of enum

This patch fixes the inferred misuse of enum of crypto algorithms.

Coverity issue: 325879
Fixes: e80a98708166 ("vhost/crypto: add session message handler")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c