ring: use custom element for fixed size API
authorFeifei Wang <feifei.wang2@arm.com>
Thu, 9 Jul 2020 06:12:12 +0000 (01:12 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 9 Jul 2020 15:22:36 +0000 (17:22 +0200)
commit2d6ed071a8b93ead509ff26914bdb8938efd7543
tree272038b7d02c8d97d14c47f2c65ee8ad4979d517
parent019bffab5155a69c420917ac381b60afb2c39c4b
ring: use custom element for fixed size API

Use rte_ring_xxx_elem_xxx APIs to replace legacy API implementation.
This reduces code duplication and improves code maintenance.

Tests done on Arm, x86 [1] and PPC [2] do not indicate performance
degradation.
[1] https://mails.dpdk.org/archives/dev/2020-July/173780.html
[2] https://mails.dpdk.org/archives/dev/2020-July/173863.html

Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ring/rte_ring.h