ring: add a function to return the ring size
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Feb 2017 16:42:00 +0000 (16:42 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Mar 2017 15:05:19 +0000 (16:05 +0100)
commit03437f29474881a557bd8ed4591b1f0bd238d849
tree0f2ad2c29061a079644e235f7769b42a2745363b
parent40f1806e233e009d69635eabe6b06f9c9512df7c
ring: add a function to return the ring size

Applications and other libraries should not be reading inside the
rte_ring structure directly to get the ring size. Instead add a fn
to allow it to be queried.

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