doc: fix nics features matrix for ixgbe
[dpdk.git] / examples / ip_pipeline / pipeline / pipeline_common_fe.h
index 693848d..cfad963 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;
 }