* Copyright(c) 2010-2015 Intel Corporation
*/
-#include "app.h"
+#include <stdio.h>
+#include <string.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <getopt.h>
-static struct app_params app;
+#include <rte_eal.h>
int
main(int argc, char **argv)
{
- rte_openlog_stream(stderr);
+ int status;
- /* Config */
- app_config_init(&app);
+ /* EAL */
+ status = rte_eal_init(argc, argv);
+ if (status < 0) {
+ printf("Error: EAL initialization failed (%d)\n", status);
+ return status;
+ };
- app_config_args(&app, argc, argv);
-
- app_config_preproc(&app);
-
- app_config_parse(&app, app.parser_file);
-
- app_config_check(&app);
-
- /* Init */
- app_init(&app);
-
- /* Run-time */
- rte_eal_mp_remote_launch(
- app_thread,
- (void *) &app,
- CALL_MASTER);
-
- return 0;
}