examples/l2fwd-jobstats: use compiler atomics for stats sync
authorJoyce Kong <joyce.kong@arm.com>
Wed, 13 Oct 2021 18:54:04 +0000 (13:54 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Oct 2021 15:15:57 +0000 (17:15 +0200)
commit7383b25f4b60516f8d09fac4eab0958660d75f84
tree4c26f002238259d32f8a0371e104ebab2c04d807
parentda126627de7bd7318012e7673e8f8e282f304848
examples/l2fwd-jobstats: use compiler atomics for stats sync

Convert rte_atomic usages to compiler atomic built-ins
for stats_read_pending sync in l2fwd_jobstats module.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
examples/l2fwd-jobstats/main.c