vhost/crypto: fix write back source
authorFan Zhang <roy.fan.zhang@intel.com>
Mon, 28 Sep 2020 10:59:16 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 28 Sep 2020 11:19:02 +0000 (13:19 +0200)
commit409c47c7c5b849b887ad9626f25c4ecdf06c9e68
tree349865841f6490ccc4e7c9e8fde9d16fea4ecd1e
parentb2866f4733698bcdba063daf3d73f0bf045ee7ac
vhost/crypto: fix write back source

This patch fixes vhost crypto library for the incorrect source and
destination buffer calculation in the copy mode.

Fixes: cd1e8f03abf0 ("vhost/crypto: fix packet copy in chaining mode")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/vhost_crypto.c