vhost/crypto: fix packet copy in chaining mode
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 6 Nov 2018 16:22:48 +0000 (16:22 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commitcd1e8f03abf0323e6210ae89a80b89b242a35260
tree45b95a60b7389bc310833cc45e16c2b6a25cf117
parent2dac0df47c5666fe53513a9320cc95f1c5e72d4e
vhost/crypto: fix packet copy in chaining mode

This patch fixes the incorrect packet content copy in the
chaining mode. Originally the content before cipher offset is
overwritten by all zeros. This patch fixes the problem by
making sure the correct write back source and destination
settings during set up.

Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c