examples/kni: use compiler atomics for status sync
authorJoyce Kong <joyce.kong@arm.com>
Wed, 13 Oct 2021 18:54:02 +0000 (13:54 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 Oct 2021 15:15:57 +0000 (17:15 +0200)
commit6be26e31773b7c76d8076012574c226b15096824
treeeaab6f90573b7226125a507ba512dec864a8acc4
parent9b882c5b87872b6c00c7bb2d4bba7191be8648fa
examples/kni: use compiler atomics for status sync

Convert rte_atomic usages to compiler atomic builit-ins
for kni_stop and kni_pause sync.

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