RE: [RFC] ring: improve ring performance with C11 atomics

2023-06-08 Thread Wathsala Wathawana Vithanage
, 2023 3:17 PM > To: Honnappa Nagarahalli ; > konstantin.v.anan...@yandex.ru; Feifei Wang > Cc: dev@dpdk.org; nd ; Wathsala Wathawana Vithanage > > Subject: [RFC] ring: improve ring performance with C11 atomics > > Tail load in __rte_ring_move_cons_head and __rte

RE: [RFC] ring: improve ring performance with C11 atomics

2023-04-22 Thread Morten Brørup
> From: Wathsala Vithanage [mailto:wathsala.vithan...@arm.com] > Sent: Friday, 21 April 2023 21.17 > > Tail load in __rte_ring_move_cons_head and __rte_ring_move_prod_head > can be changed to __ATOMIC_RELAXED from __ATOMIC_ACQUIRE. > Because to calculate the addresses of the dequeue > elements __r

[RFC] ring: improve ring performance with C11 atomics

2023-04-21 Thread Wathsala Vithanage
Tail load in __rte_ring_move_cons_head and __rte_ring_move_prod_head can be changed to __ATOMIC_RELAXED from __ATOMIC_ACQUIRE. Because to calculate the addresses of the dequeue elements __rte_ring_dequeue_elems uses the old_head updated by the __atomic_compare_exchange_n intrinsic used in __rte_rin

[RFC] ring: improve ring performance with C11 atomics

2023-04-21 Thread Wathsala Vithanage
Tail load in __rte_ring_move_cons_head and __rte_ring_move_prod_head can be changed to __ATOMIC_RELAXED from __ATOMIC_ACQUIRE. Because to calculate the addresses of the dequeue elements __rte_ring_dequeue_elems uses the old_head updated by the __atomic_compare_exchange_n intrinsic used in __rte_rin