Skip to contentSkip to conversation

crypto/qat: fix failed raw data path dequeue

dpdk-dev Applied Fan Zhang 2 participants 3 messages Jul 27, 2021 Crypto API

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

This patch fixes the raw data path dequeue burst fail problem. Previously the 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")
---
 drivers/crypto/qat/qat_sym_hw_dp.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/crypto/qat/qat_sym_hw_dp.c +0 -8
index 4305579b54..ac9ac05363 100644
@@ -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;
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 9 lines

This patch fixes the raw data path dequeue burst fail problem. Previously the 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")

Applied to dpdk-next-crypto

#2 lore raw
Quoted 13 lines
Quoted 6 lines

This patch fixes the raw data path dequeue burst fail problem. Previously the 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")

Quoted 3 lines

Applied to dpdk-next-crypto