X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Fpipeline_routing.c;h=b1ce62487f10574ea38c4b1a323c4d88795280f4;hb=0d8d3df6b81bb0785c704f3226adecd8e2bce2ac;hp=f19506dbc3b44e7765ab739acf4974d2de5d588e;hpb=77a334675f29b36fa653ad79f126fdcb6c20762d;p=dpdk.git diff --git a/examples/ip_pipeline/pipeline_routing.c b/examples/ip_pipeline/pipeline_routing.c index f19506dbc3..b1ce62487f 100644 --- a/examples/ip_pipeline/pipeline_routing.c +++ b/examples/ip_pipeline/pipeline_routing.c @@ -370,7 +370,7 @@ app_message_handle(struct app_core_routing_message_handle_params *params) arp_table_id = params->arp_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: { @@ -464,7 +464,7 @@ app_message_handle(struct app_core_routing_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 */