test/ring: fix number of single element enqueue/dequeue
authorFeifei Wang <feifei.wang2@arm.com>
Sun, 20 Sep 2020 11:48:51 +0000 (06:48 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 23 Sep 2020 06:53:33 +0000 (08:53 +0200)
commitf642148eea7c63ab0cfe7ef783657bd9db83518e
tree7ca31a48a0c063f895749054b99158363e17e71b
parent6450023ca20c46240dca06eca43af997f35de206
test/ring: fix number of single element enqueue/dequeue

The ring capacity is (RING_SIZE - 1), thus only (RING_SIZE - 1) number of
elements can be enqueued into the ring.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_ring.c