X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Fip_pipeline%2Fpipeline_rx.c;h=e43ebfabc290279c8f9d531d076c3e5192cf59ef;hp=ba5fa0ab81e32489c992731e00c2bafef93f831b;hb=9aaccf1abdb2894ec23870e1d2199a657f85850e;hpb=62814bc2e923b3d1867a93a1a4cd6073f5065e41 diff --git a/examples/ip_pipeline/pipeline_rx.c b/examples/ip_pipeline/pipeline_rx.c index ba5fa0ab81..e43ebfabc2 100644 --- a/examples/ip_pipeline/pipeline_rx.c +++ b/examples/ip_pipeline/pipeline_rx.c @@ -348,7 +348,7 @@ app_message_handle(struct app_core_rx_message_handle_params *params) port_in_id = params->port_in_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: { @@ -375,7 +375,7 @@ app_message_handle(struct app_core_rx_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 */