X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fip_pipeline%2Fpipeline_flow_classification.c;h=cc0cbf1a5490f251caf20cf2f949dffb6846f2fc;hp=68d4f936223860846a455b041007965fa5ab54fd;hb=9aaccf1abdb2894ec23870e1d2199a657f85850e;hpb=62814bc2e923b3d1867a93a1a4cd6073f5065e41 diff --git a/examples/ip_pipeline/pipeline_flow_classification.c b/examples/ip_pipeline/pipeline_flow_classification.c index 68d4f93622..cc0cbf1a54 100644 --- a/examples/ip_pipeline/pipeline_flow_classification.c +++ b/examples/ip_pipeline/pipeline_flow_classification.c @@ -250,7 +250,7 @@ app_message_handle(struct app_core_fc_message_handle_params *params) table_id = params->table_id; /* Handle request */ - req = (struct app_msg_req *) ((struct rte_mbuf *)msg)->ctrl.data; + req = (struct app_msg_req *)rte_ctrlmbuf_data((struct rte_mbuf *)msg); switch (req->type) { case APP_MSG_REQ_PING: { @@ -296,7 +296,7 @@ app_message_handle(struct app_core_fc_message_handle_params *params) } /* Fill in response message */ - resp = (struct app_msg_resp *) ((struct rte_mbuf *)msg)->ctrl.data; + resp = (struct app_msg_resp *)rte_ctrlmbuf_data((struct rte_mbuf *)msg); resp->result = result; /* Send response */