X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Fpipeline%2Fpipeline_flow_classification.c;h=192157486d804bdd1dba66307c3aa46cec726ee1;hb=3cd654213b24e79b731ec975bca2c839aba5f54a;hp=04b69158491e19eb092a7aa7625ec4a6950de689;hpb=074fd37aa11e51fcc44e86cb71d527177097d7dd;p=dpdk.git diff --git a/examples/ip_pipeline/pipeline/pipeline_flow_classification.c b/examples/ip_pipeline/pipeline/pipeline_flow_classification.c index 04b6915849..192157486d 100644 --- a/examples/ip_pipeline/pipeline/pipeline_flow_classification.c +++ b/examples/ip_pipeline/pipeline/pipeline_flow_classification.c @@ -298,7 +298,7 @@ app_pipeline_fc_add(struct app_params *app, (key == NULL)) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -1; @@ -398,7 +398,7 @@ app_pipeline_fc_add_bulk(struct app_params *app, (n_keys == 0)) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -1; @@ -448,7 +448,7 @@ app_pipeline_fc_add_bulk(struct app_params *app, flow_rsp = rte_malloc(NULL, n_keys * sizeof(struct pipeline_fc_add_bulk_flow_rsp), RTE_CACHE_LINE_SIZE); - if (flow_req == NULL) { + if (flow_rsp == NULL) { rte_free(flow_req); rte_free(new_flow); rte_free(signature); @@ -588,7 +588,7 @@ app_pipeline_fc_del(struct app_params *app, (key == NULL)) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -1; @@ -646,7 +646,7 @@ app_pipeline_fc_add_default(struct app_params *app, if (app == NULL) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -1; @@ -698,7 +698,7 @@ app_pipeline_fc_del_default(struct app_params *app, if (app == NULL) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -EINVAL; @@ -879,7 +879,7 @@ app_pipeline_fc_ls(struct app_params *app, if (app == NULL) return -1; - p = app_pipeline_data_fe(app, pipeline_id); + p = app_pipeline_data_fe(app, pipeline_id, &pipeline_flow_classification); if (p == NULL) return -1;