[dpdk-dev] crypto/qat: fix dequeue count stats retrieval
Checks
Commit Message
The QAT device's dequeued_count and dequeue_err_count stats were
incorrectly assigned the enqueued_count and enqueue_err_count values,
respectively.
Signed-off-by: Gage Eads <gage.eads@intel.com>
Fixes: 1703e94a ("qat: add driver for QuickAssist devices")
---
drivers/crypto/qat/qat_crypto.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
> -----Original Message-----
> From: Eads, Gage
> Sent: Thursday, April 27, 2017 4:31 PM
> To: dev@dpdk.org
> Cc: Griffin, John <john.griffin@intel.com>; Trahe, Fiona
> <fiona.trahe@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;
> stable@dpdk.org
> Subject: [PATCH] crypto/qat: fix dequeue count stats retrieval
>
> The QAT device's dequeued_count and dequeue_err_count stats were
> incorrectly assigned the enqueued_count and enqueue_err_count values,
> respectively.
>
> Signed-off-by: Gage Eads <gage.eads@intel.com>
> Fixes: 1703e94a ("qat: add driver for QuickAssist devices")
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
> -----Original Message-----
> From: stable [mailto:stable-bounces@dpdk.org] On Behalf Of Trahe, Fiona
> Sent: Thursday, April 27, 2017 4:47 PM
> To: Eads, Gage; dev@dpdk.org
> Cc: Griffin, John; Jain, Deepak K; stable@dpdk.org; Trahe, Fiona
> Subject: Re: [dpdk-stable] [PATCH] crypto/qat: fix dequeue count stats
> retrieval
>
>
>
> > -----Original Message-----
> > From: Eads, Gage
> > Sent: Thursday, April 27, 2017 4:31 PM
> > To: dev@dpdk.org
> > Cc: Griffin, John <john.griffin@intel.com>; Trahe, Fiona
> > <fiona.trahe@intel.com>; Jain, Deepak K <deepak.k.jain@intel.com>;
> > stable@dpdk.org
> > Subject: [PATCH] crypto/qat: fix dequeue count stats retrieval
> >
> > The QAT device's dequeued_count and dequeue_err_count stats were
> > incorrectly assigned the enqueued_count and enqueue_err_count values,
> > respectively.
> >
> > Signed-off-by: Gage Eads <gage.eads@intel.com>
> > Fixes: 1703e94a ("qat: add driver for QuickAssist devices")
>
> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Fixed "fixes line" with 6 SHA-1 bytes: 1703e94ac5ce
Added Cc: stable@dpdk.org
Applied to dpdk-next-crypto.
Thanks,
Pablo
@@ -1275,9 +1275,9 @@ void qat_crypto_sym_stats_get(struct rte_cryptodev *dev,
}
stats->enqueued_count += qp[i]->stats.enqueued_count;
- stats->dequeued_count += qp[i]->stats.enqueued_count;
+ stats->dequeued_count += qp[i]->stats.dequeued_count;
stats->enqueue_err_count += qp[i]->stats.enqueue_err_count;
- stats->dequeue_err_count += qp[i]->stats.enqueue_err_count;
+ stats->dequeue_err_count += qp[i]->stats.dequeue_err_count;
}
}