test/ring: fix object reference for single element enqueue
authorFeifei Wang <feifei.wang2@arm.com>
Sun, 20 Sep 2020 11:48:50 +0000 (06:48 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 23 Sep 2020 06:53:33 +0000 (08:53 +0200)
commit6450023ca20c46240dca06eca43af997f35de206
tree36c8202f7e8ac7d1e24ca3a023c91dc5a056bbda
parenta4ab862e99c49b7b9e57c5844a1843b0e3d93ebc
test/ring: fix object reference for single element enqueue

When enqueue one element to ring in the performance test, a pointer
should be passed to rte_ring_[sp|mp]enqueue APIs, not the pointer
to a table of void *pointers.

Fixes: a9fe152363e2 ("test/ring: add custom element size functional tests")
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.h