From: Bruce Richardson Date: Thu, 23 Feb 2017 16:42:01 +0000 (+0000) Subject: crypto/null: use ring size function X-Git-Tag: spdx-start~4437 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b11c78a2e0c67bfb276e4c90d5aa023029899f0e;p=dpdk.git crypto/null: use ring size function Rather than reading the size directly from the ring structure, use the dedicated function for that purpose. Signed-off-by: Bruce Richardson Acked-by: Declan Doherty --- diff --git a/drivers/crypto/null/null_crypto_pmd_ops.c b/drivers/crypto/null/null_crypto_pmd_ops.c index 26ff631932..4a24537cac 100644 --- a/drivers/crypto/null/null_crypto_pmd_ops.c +++ b/drivers/crypto/null/null_crypto_pmd_ops.c @@ -193,7 +193,7 @@ null_crypto_pmd_qp_create_processed_pkts_ring(struct null_crypto_qp *qp, r = rte_ring_lookup(qp->name); if (r) { - if (r->prod.size >= ring_size) { + if (rte_ring_get_size(r) >= ring_size) { NULL_CRYPTO_LOG_INFO( "Reusing existing ring %s for processed packets", qp->name);