ring: create common function for updating tail index
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Mar 2017 15:21:29 +0000 (16:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Mar 2017 20:32:20 +0000 (22:32 +0200)
commit6a68df7f230fe6908da4c1a4af42f55f185a23e9
tree9c2562f71a2784c575921f8cb186af4faf672d12
parent0dfc98c507b15bc32671fa047504e2dd7107e94c
ring: create common function for updating tail index

Both producer and consumer use the same logic for updating the tail
index so merge into a single function.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_ring/rte_ring.h