ring: fix return value for dequeue
authorAnand B Jyoti <anand.b.jyoti@intel.com>
Fri, 2 Jun 2017 06:29:51 +0000 (11:59 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jun 2017 12:45:28 +0000 (14:45 +0200)
commit077d2488895732d42a0e284e3564664a41203412
tree0111d1e5dd28b56413552d8655dd8ce5ee03edd7
parent41218a9d436df89008e3320676638099f990cfd3
ring: fix return value for dequeue

The error return code for rte_ring_sc_dequeue_bulk() and
rte_ring_mc_dequeue_bulk() function should be -ENOENT rather
than -ENOBUFS as described in the function description.

Fixes: cfa7c9e6fc1f ("ring: make bulk and burst return values consistent")
Cc: stable@dpdk.org
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_ring/rte_ring.h