Skip to content

Commit

Permalink
crypto/dpaa2_sec: fix operation status for simple FD
Browse files Browse the repository at this point in the history
[ upstream commit 04408e4 ]

Driver is not filling the operation status on dequeue
in case the FD is simple.

So setting the status as per the results.

Fixes: 0a23d4b ("crypto/dpaa2_sec: support protocol offload IPsec")

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
  • Loading branch information
Gagandeep Singh authored and steevenlee committed Jun 20, 2022
1 parent 4565093 commit 6b38d08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
Expand Up @@ -1583,6 +1583,14 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd)
else
mbuf->data_off += SEC_FLC_DHR_INBOUND;

if (unlikely(fd->simple.frc)) {
DPAA2_SEC_ERR("SEC returned Error - %x",
fd->simple.frc);
op->status = RTE_CRYPTO_OP_STATUS_ERROR;
} else {
op->status = RTE_CRYPTO_OP_STATUS_SUCCESS;
}

return op;
}
#endif
Expand Down

0 comments on commit 6b38d08

Please sign in to comment.