[RFC] ring: remove unnecessary fences in C11 ring for performance

Stephen Hemminger stephen at networkplumber.org
Thu Jun 13 17:34:46 CEST 2024


On Mon, 12 Jun 2023 19:47:16 +0000
Wathsala Vithanage <wathsala.vithanage at arm.com> wrote:

> For improved performance over the current C11 based ring
> implementation, two ACQUIRE fences between the load of the old_head
> and the load of the const_tail in __rte_ring_move_prod_head and the
> load of old_head and load of the prod_tail in
> __rte_ring_move_cons_head functions have been removed. These two
> fences are not required for the safety of the ring library.
> 
> Signed-off-by: Wathsala Vithanage <wathsala.vithanage at arm.com>
> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>

Makes sense, but needs to be rebased with current rte_thread changes.


More information about the dev mailing list