test/ring: do not mask result of enqueue or dequeue
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 20 Sep 2017 11:32:16 +0000 (13:32 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 5 Oct 2017 21:29:29 +0000 (23:29 +0200)
commiteffd92b96a978fa5d08167bd08e5cc11f6982f79
tree4fb4a07708177d76b4b94ed4883da117e3eefd5b
parent72ca23c1cee85e7d145dc611f236edf50834395c
test/ring: do not mask result of enqueue or dequeue

The define RTE_RING_SZ_MASK is the maximum size supported by the
rte_ring. The size is checked at ring creation.

There is no reason today to mask the result of
rte_ring_sp_enqueue_burst() or rte_ring_sc_dequeue_burst() with this
value. The flag RTE_RING_QUOT_EXCEED was previously included in the
returned value but it was removed in
commit 77dd3064270c ("ring: remove watermark support").

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/test_ring.c