src/dpdk/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c
static void
mrvl_crypto_pmd_stats_get(struct rte_cryptodev *dev,
		struct rte_cryptodev_stats *stats)
{
	int qp_id;

	for (qp_id = 0; qp_id < dev->data->nb_queue_pairs; qp_id++) {
		struct mrvl_crypto_qp *qp = dev->data->queue_pairs[qp_id];

		stats->enqueued_count += qp->stats.enqueued_count;
		stats->dequeued_count += qp->stats.dequeued_count;

		stats->enqueue_err_count += qp->stats.enqueue_err_count;
		stats->dequeue_err_count += qp->stats.dequeue_err_count;
	}
}
/**
 * Get device statistics (PMD ops callback).
 *
 * @param dev Pointer to the device structure.
 * @param stats Pointer to statistics structure [out].
 */
Get device statistics (PMD ops callback).
@param dev Pointer to the device structure.
@param stats Pointer to statistics structure [out].
Get device statistics ( PMD ops callback ) . @param dev Pointer to the device structure . @param stats Pointer to statistics structure [ out ] .
static void
mrvl_crypto_pmd_stats_get(struct rte_cryptodev *dev,
		struct rte_cryptodev_stats *stats)
{
	int qp_id;
	for (qp_id = 0; qp_id < dev->data->nb_queue_pairs; qp_id++) {
		struct mrvl_crypto_qp *qp = dev->data->queue_pairs[qp_id];
		stats->enqueued_count += qp->stats.enqueued_count;
		stats->dequeued_count += qp->stats.dequeued_count;
		stats->enqueue_err_count += qp->stats.enqueue_err_count;
		stats->dequeue_err_count += qp->stats.dequeue_err_count;
	}
}
static void mrvl_crypto_pmd_stats_get ( struct rte_cryptodev * dev , struct rte_cryptodev_stats * stats ) { int qp_id ; for ( qp_id = 0 ; qp_id < dev -> data -> nb_queue_pairs ; qp_id ++ ) { struct mrvl_crypto_qp * qp = dev -> data -> queue_pairs [ qp_id ] ; stats -> enqueued_count += qp -> stats . enqueued_count ; stats -> dequeued_count += qp -> stats . dequeued_count ; stats -> enqueue_err_count += qp -> stats . enqueue_err_count ; stats -> dequeue_err_count += qp -> stats . dequeue_err_count ; } }
Get device statistics (PMD ops callback).
Get device statistics ( PMD ops callback ) .