aboutsummaryrefslogtreecommitdiff
path: root/example/packet
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2015-07-09 16:46:16 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-23 19:21:51 +0300
commit3501aeea1b0316aa5e951e6e601b891a05e0d1c4 (patch)
tree842892b5b9b37e2a2158529f56ad7754211853dd /example/packet
parentb16afd47225ed07360bd7574ed1970ff544c5d50 (diff)
api: init: added thread type to local init
User needs to select the thread type (worker or control) of the initialized thread. Implementation may reserve HW direct access only to worker threads, while control threads share HW access, etc. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Conflicts: helper/linux.c
Diffstat (limited to 'example/packet')
-rw-r--r--example/packet/odp_pktio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c
index a3a8692..9bb2959 100644
--- a/example/packet/odp_pktio.c
+++ b/example/packet/odp_pktio.c
@@ -350,7 +350,7 @@ int main(int argc, char *argv[])
}
/* Init this thread */
- if (odp_init_local()) {
+ if (odp_init_local(ODP_THREAD_CONTROL)) {
EXAMPLE_ERR("Error: ODP local init failed.\n");
exit(EXIT_FAILURE);
}