]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/pipeline/pipeline_common_fe.h
doc: fix nics features matrix for ixgbe
[dpdk.git] / examples / ip_pipeline / pipeline / pipeline_common_fe.h
index 693848d2ccf6d70103a0e8f79c8123575604258e..cfad963d8e0d771ab8d23f0508d65586939f84d8 100644 (file)
@@ -60,7 +60,7 @@ app_pipeline_data(struct app_params *app, uint32_t id)
 }
 
 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;
 
@@ -68,6 +68,12 @@ app_pipeline_data_fe(struct app_params *app, uint32_t id)
        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;
 }