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 swap action in pass-through
[dpdk.git]
/
examples
/
ip_pipeline
/
thread_fe.c
diff --git
a/examples/ip_pipeline/thread_fe.c
b/examples/ip_pipeline/thread_fe.c
index
d1b72b4
..
6c547ca
100644
(file)
--- a/
examples/ip_pipeline/thread_fe.c
+++ b/
examples/ip_pipeline/thread_fe.c
@@
-81,6
+81,9
@@
app_pipeline_enable(struct app_params *app,
p_params = &app->pipeline_params[pipeline_id];
p_type = app_pipeline_type_find(app, p_params->type);
+ if (p_type == NULL)
+ return -1;
+
if (p->enabled == 1)
return -1;