Re: [dpdk-dev] [PATCH v5] app/test: add tests for atomic exchanges

2019-11-06 Thread David Marchand
On Wed, Nov 6, 2019 at 8:57 PM David Christensen wrote: > @@ -459,9 +595,43 @@ test_atomic(void) > printf("128-bit compare and swap failed\n"); > return -1; > } > -#endif > > return 0; > } > +#endif > + > + /* > +* Test 16/32/64bit at

[dpdk-dev] [PATCH v5] app/test: add tests for atomic exchanges

2019-11-06 Thread David Christensen
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 Christe