ring: create common structure for prod and cons metadata
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Mar 2017 15:21:18 +0000 (16:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Mar 2017 20:25:13 +0000 (22:25 +0200)
commit8526571400ff2d81b6d9f93873bb706b7d6dcb39
tree84930fe3bee1aa07b2f83fa122df0025ab960617
parentd9f0d3a1ffd4b66e75485cc8b63b9aedfbdfe8b0
ring: create common structure for prod and cons metadata

create a common structure to hold the metadata for the producer and
the consumer, since both need essentially the same information - the
head and tail values, the ring size and mask.

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_pdump/rte_pdump.c
lib/librte_port/rte_port_ring.c
lib/librte_ring/rte_ring.c
lib/librte_ring/rte_ring.h