Fan Zhang | a44a0c0 | 2021-07-27 16:49:55 +0100 | [diff] [blame] | 1 | From 154843b968e98e7d4683f1540631ca324c337073 Mon Sep 17 00:00:00 2001 |
| 2 | From: Fan Zhang <roy.fan.zhang@intel.com> |
| 3 | Date: Tue, 27 Jul 2021 16:27:36 +0100 |
| 4 | Subject: [dpdk-dev] crypto/qat: fix failed raw data path dequeue |
| 5 | |
| 6 | This patch fixes the raw data path dequeue burst fail problem. |
| 7 | Previously the in case the queue is full and not all packets |
| 8 | asked to be dequeued are processed, the dequeue burst will |
| 9 | never happen. |
| 10 | |
| 11 | Fixes: c21574edc52a ("cryptodev: add dequeue count parameter in raw API") |
| 12 | Cc: roy.fan.zhang@intel.com |
| 13 | |
| 14 | Signed-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 | |
| 19 | diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c |
| 20 | index 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 | -- |
| 39 | 2.25.1 |
| 40 | |