crypto/dpaa2_sec: fix length retrieved from hardware
authorAkhil Goyal <akhil.goyal@nxp.com>
Tue, 5 Nov 2019 21:07:12 +0000 (02:37 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 8 Nov 2019 12:51:16 +0000 (13:51 +0100)
commit4bc65cf1190f3ba6b613dd4c76224c8d710c1d04
tree08f90825d7ff7d78edd4b58eb6396c1e561dea1d
parent3e43647cd6f7c1e88fd7f15668c003f2e570f611
crypto/dpaa2_sec: fix length retrieved from hardware

FD retrieved from SEC after crypto processing provides
an updated length of the buffer which need to be updated
in mbuf. The difference in length can be negative hence
changing diff to int32_t from uint32_t.

Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec")
Cc: stable@dpdk.org
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c