vhost/crypto: fix checks while moving descriptors
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 27 Apr 2018 14:06:08 +0000 (15:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 17:49:20 +0000 (19:49 +0200)
commit613e827fb28687a990428dab4f34b41c1f180462
tree9fd8c215a4bb7823a2d753b11c7d431675584676
parentd4cc4c65dfb46d4262479daecbf5d3281dc68e6a
vhost/crypto: fix checks while moving descriptors

This patch fix final condition check while moving virtqueue
descriptors.

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