* [dpdk-dev] [PATCH] common/qat: fix stats update
@ 2020-05-06 11:29 Adam Dybkowski
2020-05-08 14:56 ` Trahe, Fiona
0 siblings, 1 reply; 3+ messages in thread
From: Adam Dybkowski @ 2020-05-06 11:29 UTC (permalink / raw)
To: dev, fiona.trahe, akhil.goyal; +Cc: Adam Dybkowski
This patch fixes enqueued and dequeued count statistics that should
contain the numer of operations enqueued by the end user app
instead of the total number of QAT requests - bigger in case of
a multiple-request dynamic Huffman compression operation.
Fixes: c13cecf60f12 ("compress/qat: support IM buffer too small operation")
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
---
Requires applying other patch first: http://patches.dpdk.org/patch/69765/
---
drivers/common/qat/qat_qp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c
index 098b99786..9d7091af3 100644
--- a/drivers/common/qat/qat_qp.c
+++ b/drivers/common/qat/qat_qp.c
@@ -818,7 +818,7 @@ qat_enqueue_comp_op_burst(void *qp, void **ops, uint16_t nb_ops)
kick_tail:
queue->tail = tail;
tmp_qp->enqueued += total_descriptors_built;
- tmp_qp->stats.enqueued_count += total_descriptors_built;
+ tmp_qp->stats.enqueued_count += nb_ops_sent;
txq_write_tail(tmp_qp, queue);
return nb_ops_sent;
}
@@ -880,7 +880,7 @@ qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops)
}
tmp_qp->dequeued += fw_resp_counter;
- tmp_qp->stats.dequeued_count += fw_resp_counter;
+ tmp_qp->stats.dequeued_count += op_resp_counter;
rx_queue->head = head;
if (rx_queue->nb_processed_responses > QAT_CSR_HEAD_WRITE_THRESH)
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] common/qat: fix stats update
2020-05-06 11:29 [dpdk-dev] [PATCH] common/qat: fix stats update Adam Dybkowski
@ 2020-05-08 14:56 ` Trahe, Fiona
2020-05-09 22:03 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Trahe, Fiona @ 2020-05-08 14:56 UTC (permalink / raw)
To: Dybkowski, AdamX, dev, akhil.goyal
> -----Original Message-----
> From: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Sent: Wednesday, May 6, 2020 12:30 PM
> To: dev@dpdk.org; Trahe, Fiona <fiona.trahe@intel.com>; akhil.goyal@nxp.com
> Cc: Dybkowski, AdamX <adamx.dybkowski@intel.com>
> Subject: [PATCH] common/qat: fix stats update
>
> This patch fixes enqueued and dequeued count statistics that should
> contain the numer of operations enqueued by the end user app
> instead of the total number of QAT requests - bigger in case of
> a multiple-request dynamic Huffman compression operation.
>
> Fixes: c13cecf60f12 ("compress/qat: support IM buffer too small operation")
>
> Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] common/qat: fix stats update
2020-05-08 14:56 ` Trahe, Fiona
@ 2020-05-09 22:03 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2020-05-09 22:03 UTC (permalink / raw)
To: Trahe, Fiona, Dybkowski, AdamX, dev
> > This patch fixes enqueued and dequeued count statistics that should
> > contain the numer of operations enqueued by the end user app
> > instead of the total number of QAT requests - bigger in case of
> > a multiple-request dynamic Huffman compression operation.
> >
> > Fixes: c13cecf60f12 ("compress/qat: support IM buffer too small operation")
> >
> > Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-09 22:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 11:29 [dpdk-dev] [PATCH] common/qat: fix stats update Adam Dybkowski
2020-05-08 14:56 ` Trahe, Fiona
2020-05-09 22:03 ` Akhil Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).