ring: return remaining entry count when dequeuing
[dpdk.git] / test / test / test_table_ports.c
index 395f4f3..39592ce 100644 (file)
@@ -163,7 +163,7 @@ test_port_ring_writer(void)
        rte_port_ring_writer_ops.f_flush(port);
        expected_pkts = 1;
        received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
-               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz);
+               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz, NULL);
 
        if (received_pkts < expected_pkts)
                return -7;
@@ -178,7 +178,7 @@ test_port_ring_writer(void)
 
        expected_pkts = RTE_PORT_IN_BURST_SIZE_MAX;
        received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
-               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz);
+               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz, NULL);
 
        if (received_pkts < expected_pkts)
                return -8;
@@ -193,7 +193,7 @@ test_port_ring_writer(void)
 
        expected_pkts = RTE_PORT_IN_BURST_SIZE_MAX;
        received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
-               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz);
+               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz, NULL);
 
        if (received_pkts < expected_pkts)
                return -8;
@@ -208,7 +208,7 @@ test_port_ring_writer(void)
 
        expected_pkts = RTE_PORT_IN_BURST_SIZE_MAX;
        received_pkts = rte_ring_sc_dequeue_burst(port_ring_writer_params.ring,
-               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz);
+               (void **)res_mbuf, port_ring_writer_params.tx_burst_sz, NULL);
 
        if (received_pkts < expected_pkts)
                return -9;