examples/qos_sched: fix dequeue from ring
authorJasvinder Singh <jasvinder.singh@intel.com>
Thu, 1 Sep 2016 10:11:04 +0000 (11:11 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 12:37:48 +0000 (14:37 +0200)
commitedabd7fef5448af6a9f81892fdb4a365fad9e320
tree106e1bb2df000f395aa21061f7f247141cef886a
parenta77b948a655ae98a5915e65e354ffbb13a9fa974
examples/qos_sched: fix dequeue from ring

The app_worker_thread() and app_mixed_thread() use rte_ring_sc_dequeue_bulk
to dequeue packets from the ring and this imposes restriction on number of
packets in software ring to be greater than the specified value to start
actual dequeue operation, thus, adds latency to those packets. Therefore,
rte_ring_sc_dequeue_bulk is replaced with rte_ring_sc_dequeue_burst.

Fixes: de3cfa2c9823 ("sched: initial import")

Suggested-by: Tao Y Yang <tao.y.yang@intel.com>
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/qos_sched/app_thread.c