git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/ip_pipeline: add tap object
[dpdk.git]
/
examples
/
ip_pipeline
/
main.c
diff --git
a/examples/ip_pipeline/main.c
b/examples/ip_pipeline/main.c
index
490991f
..
33c3354
100644
(file)
--- a/
examples/ip_pipeline/main.c
+++ b/
examples/ip_pipeline/main.c
@@
-15,6
+15,7
@@
#include "link.h"
#include "mempool.h"
#include "swq.h"
#include "link.h"
#include "mempool.h"
#include "swq.h"
+#include "tap.h"
#include "tmgr.h"
static const char usage[] =
#include "tmgr.h"
static const char usage[] =
@@
-191,6
+192,13
@@
main(int argc, char **argv)
return status;
}
return status;
}
+ /* TAP */
+ status = tap_init();
+ if (status) {
+ printf("Error: TAP initialization failed (%d)\n", status);
+ return status;
+ }
+
/* Script */
if (app.script_name)
cli_script_process(app.script_name,
/* Script */
if (app.script_name)
cli_script_process(app.script_name,