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
doc: fix nics features matrix for ixgbe
[dpdk.git]
/
examples
/
ip_pipeline
/
pipeline
/
pipeline_common_fe.h
diff --git
a/examples/ip_pipeline/pipeline/pipeline_common_fe.h
b/examples/ip_pipeline/pipeline/pipeline_common_fe.h
index
693848d
..
cfad963
100644
(file)
--- a/
examples/ip_pipeline/pipeline/pipeline_common_fe.h
+++ b/
examples/ip_pipeline/pipeline/pipeline_common_fe.h
@@
-60,7
+60,7
@@
app_pipeline_data(struct app_params *app, uint32_t id)
}
static inline void *
}
static inline void *
-app_pipeline_data_fe(struct app_params *app, uint32_t id)
+app_pipeline_data_fe(struct app_params *app, uint32_t id
, struct pipeline_type *ptype
)
{
struct app_pipeline_data *pipeline_data;
{
struct app_pipeline_data *pipeline_data;
@@
-68,6
+68,12
@@
app_pipeline_data_fe(struct app_params *app, uint32_t id)
if (pipeline_data == NULL)
return NULL;
if (pipeline_data == NULL)
return NULL;
+ if (strcmp(pipeline_data->ptype->name, ptype->name) != 0)
+ return NULL;
+
+ if (pipeline_data->enabled == 0)
+ return NULL;
+
return pipeline_data->fe;
}
return pipeline_data->fe;
}