ring: fix return value for single dequeue
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 13 Apr 2017 09:42:56 +0000 (10:42 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Apr 2017 15:18:27 +0000 (17:18 +0200)
commitfc0ddc684877b7aa0c4733ab5619a2487e396155
treeb72157b2054d7770be0e851365f1888670fe245e
parent4b6fa6d32d2acfce5960522ba904929ee5274eb7
ring: fix return value for single dequeue

The error return code for rte_ring_dequeue() function should be -ENOENT
rather than -ENOBUFS (which is the error value from the enqueue() fn).

Fixes: cfa7c9e6fc1f ("ring: make bulk and burst return values consistent")

Reported-by: Zhihong Wang <zhihong.wang@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_ring/rte_ring.h