Petri Savolainen(psavol) replied on github web page:

test/validation/api/pktio/pktio.c
@@ -48,6 +48,9 @@ static int num_ifaces;
     interface that just become up.*/
 static bool wait_for_network;
 
+/* Dummy global variable to avoid compiler optimizing out API calls */
+uint64_t odp_valid_test_pktio_u64;


Comment:
This is "static volatile uint64_t test_pktio_dummy_u64"  in v4

> muvarov wrote
> please rename it without odp_. And I would move it inside loop and make it 
> volatile then declaring somewhere on the top.


https://github.com/Linaro/odp/pull/242#discussion_r149935458
updated_at 2017-11-09 11:25:35

Reply via email to