]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_ring/rte_ring_peek.h
net/sfc: fix jumbo frame flag condition for MTU set
[dpdk.git] / lib / librte_ring / rte_ring_peek.h
index d5e6ea1cf3669a688accd914396b98b27c1c79df..45f707dc7e7ef32b3878ee627576a3e53cf54b19 100644 (file)
@@ -74,6 +74,7 @@ __rte_ring_do_enqueue_start(struct rte_ring *r, uint32_t n,
                /* unsupported mode, shouldn't be here */
                RTE_ASSERT(0);
                n = 0;
+               free = 0;
        }
 
        if (free_space != NULL)
@@ -273,6 +274,7 @@ __rte_ring_do_dequeue_start(struct rte_ring *r, void *obj_table,
                /* unsupported mode, shouldn't be here */
                RTE_ASSERT(0);
                n = 0;
+               avail = 0;
        }
 
        if (n != 0)