ring: eliminate duplication of size and mask fields
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 29 Mar 2017 15:21:19 +0000 (16:21 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 29 Mar 2017 20:25:23 +0000 (22:25 +0200)
commitd1e138e1b081f697f43b6c54378fa7c6481632dc
treea30d5a330f5012250e30e6f0c095c56b0bae00b1
parent8526571400ff2d81b6d9f93873bb706b7d6dcb39
ring: eliminate duplication of size and mask fields

The size and mask fields are duplicated in both the producer and
consumer data structures. Move them out of that into the top level
structure so they are not duplicated.

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.c
lib/librte_ring/rte_ring.h
test/test/test_ring.c