* [dpdk-dev] crypto/qat: fix failed raw data path dequeue
@ 2021-07-27 15:42 Fan Zhang
2021-07-27 18:10 ` [dpdk-dev] [EXT] " Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Fan Zhang @ 2021-07-27 15:42 UTC (permalink / raw)
To: dev; +Cc: gakhil, Fan Zhang
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")
Cc: roy.fan.zhang@intel.com
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
drivers/crypto/qat/qat_sym_hw_dp.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/crypto/qat/qat_sym_hw_dp.c b/drivers/crypto/qat/qat_sym_hw_dp.c
index 4305579b54..ac9ac05363 100644
--- a/drivers/crypto/qat/qat_sym_hw_dp.c
+++ b/drivers/crypto/qat/qat_sym_hw_dp.c
@@ -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;
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [EXT] crypto/qat: fix failed raw data path dequeue
2021-07-27 15:42 [dpdk-dev] crypto/qat: fix failed raw data path dequeue Fan Zhang
@ 2021-07-27 18:10 ` Akhil Goyal
2021-07-27 18:11 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Akhil Goyal @ 2021-07-27 18:10 UTC (permalink / raw)
To: Fan Zhang, dev
> 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")
> Cc: roy.fan.zhang@intel.com
>
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Cc: stable@dpdk.org
Applied to dpdk-next-crypto
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [EXT] crypto/qat: fix failed raw data path dequeue
2021-07-27 18:10 ` [dpdk-dev] [EXT] " Akhil Goyal
@ 2021-07-27 18:11 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2021-07-27 18:11 UTC (permalink / raw)
To: Fan Zhang, dev; +Cc: stable
> > 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")
> > Cc: roy.fan.zhang@intel.com
> >
> > Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> Cc: stable@dpdk.org
>
> Applied to dpdk-next-crypto
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-27 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 15:42 [dpdk-dev] crypto/qat: fix failed raw data path dequeue Fan Zhang
2021-07-27 18:10 ` [dpdk-dev] [EXT] " Akhil Goyal
2021-07-27 18:11 ` Akhil Goyal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.