Harry van Haaren
505a2b0c64
test/service: fix wait for service core
...
This commit fixes a sporadic failure of the service_autotest
unit test, as seen in the DPDK CI. The failure occurs as the main test
thread did not wait on the service-thread to return, and allowing it
to read a flag before the service was able to write to it.
The fix changes the wait API call to specific the service-core ID,
and this waits for cores with both ROLE_RTE and ROLE_SERVICE.
The rte_eal_mp_wait_lcore() call does not (and should not) wait
for service cores, so must not be used to wait on service-cores.
Fixes: f038a81e1c56 ("service: add unit tests")
Cc: stable@dpdk.org
Reported-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: David Marchand <david.marchand@redhat.com>
2019-11-27 21:23:17 +01:00
..
2019-02-26 15:29:27 +01:00
2019-11-07 17:46:43 +01:00
2019-07-04 23:44:58 +02:00
2019-07-08 10:57:14 +02:00
2019-06-27 22:33:18 +02:00
2019-10-21 16:19:00 +02:00
2019-11-06 00:11:55 +01:00
2019-11-26 00:12:08 +01:00
2019-11-20 17:36:06 +01:00
2019-05-24 13:34:46 +02:00
2019-11-15 09:35:20 +01:00
2019-02-26 15:29:27 +01:00
2019-03-27 23:10:57 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-06-03 16:54:54 +02:00
2019-03-12 23:01:14 +01:00
2019-11-07 17:46:43 +01:00
2019-05-09 21:58:31 +02:00
2019-02-26 15:29:27 +01:00
2019-10-25 23:16:23 +02:00
2019-10-24 09:57:48 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-05-24 13:34:45 +02:00
2019-11-12 18:35:17 +01:00
2019-02-26 15:29:27 +01:00
2019-04-04 22:45:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-03-28 00:45:00 +01:00
2019-02-26 15:29:27 +01:00
2019-11-08 13:53:09 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-11-20 12:35:51 +01:00
2019-08-05 15:19:32 +02:00
2019-10-27 14:40:55 +01:00
2019-10-23 16:57:06 +02:00
2019-10-23 16:57:06 +02:00
2019-10-23 16:57:06 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-23 16:57:06 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-10-23 16:57:06 +02:00
2019-04-02 16:50:24 +02:00
2019-10-23 16:57:06 +02:00
2019-10-09 11:50:12 +02:00
2019-10-09 11:50:12 +02:00
2019-10-09 11:50:12 +02:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-07-05 15:28:14 +02:00
2019-11-08 13:51:16 +01:00
2019-10-23 16:57:06 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-25 23:16:23 +02:00
2019-10-25 10:27:51 +02:00
2019-08-02 22:47:07 +02:00
2019-03-12 23:01:14 +01:00
2019-10-25 23:16:23 +02:00
2019-10-25 23:16:23 +02:00
2019-03-12 23:01:14 +01:00
2019-11-26 07:49:31 +01:00
2019-10-07 15:00:55 +02:00
2019-10-07 15:00:55 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-10-05 15:39:31 +02:00
2019-10-09 10:22:24 +02:00
2019-07-06 10:32:34 +02:00
2019-11-06 00:11:55 +01:00
2019-11-06 00:11:44 +01:00
2019-11-06 00:11:55 +01:00
2019-11-06 00:11:44 +01:00
2019-07-31 00:22:33 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-10-25 23:16:23 +02:00
2019-10-25 23:16:23 +02:00
2019-11-08 15:23:37 +01:00
2019-06-03 16:54:54 +02:00
2019-09-13 17:00:19 +02:00
2019-10-23 16:57:06 +02:00
2019-11-08 13:51:16 +01:00
2019-10-07 15:00:54 +02:00
2019-02-26 15:29:27 +01:00
2019-10-25 23:16:23 +02:00
2019-11-08 15:23:37 +01:00
2019-10-07 14:45:35 +02:00
2019-10-23 16:43:08 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-24 10:00:27 +02:00
2019-06-03 16:54:54 +02:00
2019-10-09 10:22:24 +02:00
2019-11-08 23:15:05 +01:00
2019-08-08 12:19:59 +02:00
2019-10-25 23:16:23 +02:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-09 10:22:24 +02:00
2019-02-26 15:29:27 +01:00
2019-11-06 11:55:23 +01:00
2019-11-08 15:23:37 +01:00
2019-04-11 14:27:32 +02:00
2019-10-27 14:40:55 +01:00
2019-03-12 17:31:22 +01:00
2019-03-12 17:31:22 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-07 15:00:55 +02:00
2019-02-26 15:29:27 +01:00
2019-10-07 15:00:54 +02:00
2019-07-05 10:42:43 +02:00
2019-02-26 15:29:27 +01:00
2019-04-22 22:46:13 +02:00
2019-02-26 15:29:27 +01:00
2019-06-28 15:23:55 +02:00
2019-07-04 09:44:31 +02:00
2019-10-21 17:54:40 +02:00
2019-11-25 23:51:53 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-11-26 00:12:08 +01:00
2019-11-07 17:46:43 +01:00
2019-10-24 09:57:31 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:09 +02:00
2019-10-25 17:51:30 +02:00
2019-11-27 21:23:17 +01:00
2019-03-28 09:18:59 +01:00
2019-10-27 14:40:55 +01:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-08-05 15:19:32 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-08-05 15:19:32 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-10-09 10:22:24 +02:00
2019-06-03 16:54:54 +02:00
2019-03-28 15:02:10 +01:00
2019-03-12 17:31:22 +01:00
2019-03-28 19:39:13 +01:00
2019-06-27 22:34:53 +02:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 10:48:55 +02:00
2019-04-22 21:07:59 +02:00
2019-10-07 15:00:54 +02:00
2019-05-24 13:34:45 +02:00