blob: 88af37e1e34947ab0ce3e03a2061547298e3b018 [file] [log] [blame]
Fan Zhanga44a0c02021-07-27 16:49:55 +01001From 154843b968e98e7d4683f1540631ca324c337073 Mon Sep 17 00:00:00 2001
2From: Fan Zhang <roy.fan.zhang@intel.com>
3Date: Tue, 27 Jul 2021 16:27:36 +0100
4Subject: [dpdk-dev] crypto/qat: fix failed raw data path dequeue
5
6This patch fixes the raw data path dequeue burst fail problem.
7Previously the in case the queue is full and not all packets
8asked to be dequeued are processed, the dequeue burst will
9never happen.
10
11Fixes: c21574edc52a ("cryptodev: add dequeue count parameter in raw API")
12Cc: roy.fan.zhang@intel.com
13
14Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
15---
16 drivers/crypto/qat/qat_sym_hw_dp.c | 8 --------
17 1 file changed, 8 deletions(-)
18
19diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c
20index 4305579b54..ac9ac05363 100644
21--- a/drivers/crypto/qat/qat_sym_hw_dp.c
22+++ b/drivers/crypto/qat/qat_sym_hw_dp.c
23@@ -744,14 +744,6 @@ qat_sym_dp_dequeue_burst(void *qp_data, uint8_t *drv_ctx,
24 n = get_dequeue_count(resp_opaque);
25 if (unlikely(n == 0))
26 return 0;
27- else if (n > 1) {
28- head = (head + rx_queue->msg_size * (n - 1)) &
29- rx_queue->modulo_mask;
30- resp = (struct icp_qat_fw_comn_resp *)(
31- (uint8_t *)rx_queue->base_addr + head);
32- if (*(uint32_t *)resp == ADF_RING_EMPTY_SIG)
33- return 0;
34- }
35 } else {
36 if (unlikely(max_nb_to_dequeue == 0))
37 return 0;
38--
392.25.1
40