vhost/crypto: fix descriptor move
authorFan Zhang <roy.fan.zhang@intel.com>
Wed, 9 May 2018 14:08:39 +0000 (15:08 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 May 2018 10:29:05 +0000 (12:29 +0200)
commit2017bc33561af8e9880f077cef541ea947a06de0
tree0e7acddb0e6cd5a9a68ff7fc93c694be4aa9103f
parent6e1e59045715113815ea6a377e6e58945f291e0d
vhost/crypto: fix descriptor move

This patch fixes the redundant descriptor move in the copy mode
of vhost crypto. Originally the redundant descriptor move will
cause the message parsing error.

Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c