aboutsummaryrefslogtreecommitdiffstats
path: root/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt')
-rw-r--r--tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt
new file mode 100644
index 00000000..80e9af1f
--- /dev/null
+++ b/tools/docker/test-containers/dpdk-forwarding-pods/l2l3fwd/l3fwd_eal_init.txt
@@ -0,0 +1,39 @@
+#if 0
+ ret = rte_eal_init(argc, argv);
+ if (ret < 0)
+ rte_exit(EXIT_FAILURE, "Invalid EAL parameters\n");
+ argc -= ret;
+ argv += ret;
+#else
+ /* int i; */
+ int myArgc = 0;
+ char **myArgv = NULL;
+
+ printf("ENTER dpdk-app:\n");
+ printf(" argc=%d\n", argc);
+ for (i = 0; i < argc; i++) {
+ printf(" %s", argv[i]);
+ }
+ printf("\n");
+
+ if (argc > 1) {
+ ret = rte_eal_init(argc, argv);
+ if (ret < 0)
+ rte_exit(EXIT_FAILURE, "Invalid EAL parameters\n");
+ argc -= ret;
+ argv += ret;
+ } else {
+ myArgv = GetArgs(&myArgc, DPDK_APP_L3FWD);
+ printf(" myArgc=%d\n", myArgc);
+ for (i = 0; i < myArgc; i++) {
+ printf(" %s", myArgv[i]);
+ }
+ printf("\n");
+
+ ret = rte_eal_init(myArgc, myArgv);
+ if (ret < 0)
+ rte_exit(EXIT_FAILURE, "Invalid EAL parameters\n");
+ myArgc -= ret;
+ myArgv += ret;
+ }
+#endif