New upstream version 18.02
[deb_dpdk.git] / examples / ip_pipeline / main.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2010-2015 Intel Corporation
3  */
4
5 #include "app.h"
6
7 static struct app_params app;
8
9 int
10 main(int argc, char **argv)
11 {
12         rte_openlog_stream(stderr);
13
14         /* Config */
15         app_config_init(&app);
16
17         app_config_args(&app, argc, argv);
18
19         app_config_preproc(&app);
20
21         app_config_parse(&app, app.parser_file);
22
23         app_config_check(&app);
24
25         /* Init */
26         app_init(&app);
27
28         /* Run-time */
29         rte_eal_mp_remote_launch(
30                 app_thread,
31                 (void *) &app,
32                 CALL_MASTER);
33
34         return 0;
35 }