Re: [RFC 09/32] crypto_caam_jr: replace rte_smp_rmb

Hemant Agrawal <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <[email protected]>
On 29-07-2026 23:24, Stephen Hemminger wrote:
> Replace rte_smp_rmb with equivalent
> rte_atomic_thread_fence(rte_memory_order_acquire).
>
> Signed-off-by: Stephen Hemminger <[email protected]>
Acked-by: Hemant Agrawal <[email protected]>
> ---
>   drivers/crypto/caam_jr/caam_jr.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/crypto/caam_jr/caam_jr.c b/drivers/crypto/caam_jr/caam_jr.c
> index a57dc56b80..1f97e72337 100644
> --- a/drivers/crypto/caam_jr/caam_jr.c
> +++ b/drivers/crypto/caam_jr/caam_jr.c
> @@ -572,7 +572,7 @@ hw_poll_job_ring(struct sec_job_ring_t *job_ring,
>   		job_ring, job_ring->pidx, job_ring->cidx,
>   		limit, number_of_jobs_available, jobs_no_to_notify);
>   
> -	rte_smp_rmb();
> +	rte_atomic_thread_fence(rte_memory_order_acquire);
>   
>   	while (jobs_no_to_notify > notified_descs_no) {
>   		static uint64_t false_alarm;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.