crypto/qat: fix raw data path dequeue
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 27 Jul 2021 15:42:46 +0000 (16:42 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 30 Jul 2021 18:57:23 +0000 (20:57 +0200)
This patch fixes the raw data path dequeue burst fail problem.
Previously in case the queue is full and not all packets
asked to be dequeued are processed, the dequeue burst will
never happen.

Fixes: c21574edc52a ("cryptodev: add dequeue count parameter in raw API")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/qat/qat_sym_hw_dp.c

index 4305579..ac9ac05 100644 (file)
@@ -744,14 +744,6 @@ qat_sym_dp_dequeue_burst(void *qp_data, uint8_t *drv_ctx,
                n = get_dequeue_count(resp_opaque);
                if (unlikely(n == 0))
                        return 0;
-               else if (n > 1) {
-                       head = (head + rx_queue->msg_size * (n - 1)) &
-                               rx_queue->modulo_mask;
-                       resp = (struct icp_qat_fw_comn_resp *)(
-                               (uint8_t *)rx_queue->base_addr + head);
-                       if (*(uint32_t *)resp == ADF_RING_EMPTY_SIG)
-                               return 0;
-               }
        } else {
                if (unlikely(max_nb_to_dequeue == 0))
                        return 0;