summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGage Eads <gage.eads@intel.com>2017-04-27 10:31:17 -0500
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-04-28 17:46:19 +0200
commit54402696f420b23a3521a53ddae28a1364cac084 (patch)
treeff12cefe5c0f7a124ad82ad28b23df952fe5b8ad
parentd7acf6ba43b43dde40d13681738c6940049555cb (diff)
downloaddpdk-stable-54402696f420b23a3521a53ddae28a1364cac084.zip
dpdk-stable-54402696f420b23a3521a53ddae28a1364cac084.tar.gz
dpdk-stable-54402696f420b23a3521a53ddae28a1364cac084.tar.xz
crypto/qat: fix dequeue statistics
The QAT device's dequeued_count and dequeue_err_count stats were incorrectly assigned the enqueued_count and enqueue_err_count values, respectively. Fixes: 1703e94ac5ce ("qat: add driver for QuickAssist devices") Cc: stable@dpdk.org Signed-off-by: Gage Eads <gage.eads@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com>
-rw-r--r--drivers/crypto/qat/qat_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c
index 679b257..386aa45 100644
--- a/drivers/crypto/qat/qat_crypto.c
+++ b/drivers/crypto/qat/qat_crypto.c
@@ -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;
}
}