diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2019-06-06 13:54:22 +0300 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2019-06-24 12:02:43 +0300 |
commit | 159da2538ea888a04caea621d5a8dc4f5ab6e2b7 (patch) | |
tree | 01c16990311176112fb73b334f18cd10e7611841 /example/ipsec_api/odp_ipsec.c | |
parent | e2dcc95d50f850a8a703d1d0449f4875eda40e76 (diff) |
example: ipsec: do schedule config earlier
Scheduler needs to be configured before used.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Dmitry Eremin-Solenikov <deremin-solenikov@cavium.com>
Diffstat (limited to 'example/ipsec_api/odp_ipsec.c')
-rw-r--r-- | example/ipsec_api/odp_ipsec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ipsec_api/odp_ipsec.c b/example/ipsec_api/odp_ipsec.c index 5b83e8b37..e6f085ca7 100644 --- a/example/ipsec_api/odp_ipsec.c +++ b/example/ipsec_api/odp_ipsec.c @@ -948,6 +948,9 @@ main(int argc, char *argv[]) memset(global, 0, sizeof(global_data_t)); global->shm = shm; + /* Configure scheduler */ + odp_schedule_config(NULL); + /* Must init our databases before parsing args */ ipsec_init_pre(); init_fwd_db(); @@ -1001,9 +1004,6 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } - /* Configure scheduler */ - odp_schedule_config(NULL); - /* Populate our IPsec cache */ printf("Using %s mode for IPsec API\n\n", (ODP_IPSEC_OP_MODE_SYNC == global->appl.mode) ? "SYNC" : |