crypto/aesni_mb: remove assert checks
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 22 Jun 2017 12:02:27 +0000 (13:02 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 28 Jun 2017 17:59:22 +0000 (19:59 +0200)
Some assert checks in the driver were
incorrect, but they are not necessary anyway,
as application will panic in any case.

Fixes: 0f548b50a160 ("crypto/aesni_mb: process crypto op on dequeue")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c

index 267f890..f9a7d5b 100644 (file)
@@ -495,8 +495,6 @@ static inline void
 verify_digest(JOB_AES_HMAC *job, struct rte_crypto_op *op) {
        struct rte_mbuf *m_dst = (struct rte_mbuf *)job->user_data2;
 
-       RTE_ASSERT(m_dst == NULL);
-
        /* Verify digest if required */
        if (memcmp(job->auth_tag_output, op->sym->auth.digest.data,
                        job->auth_tag_output_len_in_bytes) != 0)
@@ -523,8 +521,6 @@ post_process_mb_job(struct aesni_mb_qp *qp, JOB_AES_HMAC *job)
 
        struct aesni_mb_session *sess;
 
-       RTE_ASSERT(op == NULL);
-
        if (unlikely(op->status == RTE_CRYPTO_OP_STATUS_ENQUEUED)) {
                switch (job->status) {
                case STS_COMPLETED: