test/atomic: add atomic 16/32/64-bit exchanges test
authorDavid Christensen <drc@linux.vnet.ibm.com>
Wed, 6 Nov 2019 21:18:35 +0000 (13:18 -0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 7 Nov 2019 16:46:43 +0000 (17:46 +0100)
commite79f49b4e2ccf737e9bf660bd56221994a94d150
treed3d3ede4e516e1b69385db5a320ba735c2800e32
parent82962b6abbdce0ee3dfc2b3ae4500150ed90428d
test/atomic: add atomic 16/32/64-bit exchanges test

The test works by creating a token comprised of random data
and a CRC8 value, using the rte_atomicXX_exchange to exchange
the new token for a previously generated token, and then
verifying that the exchanged data is intact (i.e. the CRC8
is still correct for the data).

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: David Marchand <david.marchand@redhat.com>
app/test/test_atomic.c