]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pdump/rte_pdump.c
ring: create common structure for prod and cons metadata
[dpdk.git] / lib / librte_pdump / rte_pdump.c
index a580a6a4c14e234c838b3b0c73856b7a83175a00..cc0b5b19db2fb448d285928b0a6154dd503cfd7e 100644 (file)
@@ -740,7 +740,7 @@ pdump_validate_ring_mp(struct rte_ring *ring, struct rte_mempool *mp)
                rte_errno = EINVAL;
                return -1;
        }
-       if (ring->prod.sp_enqueue || ring->cons.sc_dequeue) {
+       if (ring->prod.single || ring->cons.single) {
                RTE_LOG(ERR, PDUMP, "ring with either SP or SC settings"
                " is not valid for pdump, should have MP and MC settings\n");
                rte_errno = EINVAL;