mbuf: remove rte_ctrlmbuf
[dpdk.git] / examples / ip_pipeline / init.c
index 947e152..e3ebd46 100644 (file)
@@ -427,7 +427,7 @@ app_init_rings(void)
                struct rte_ring *ring;
                char name[32];
 
-               rte_snprintf(name, sizeof(name), "app_ring_%u", i);
+               snprintf(name, sizeof(name), "app_ring_%u", i);
 
                ring = rte_ring_create(
                        name,
@@ -561,7 +561,7 @@ app_ping(void)
                        rte_panic("Unable to allocate new message\n");
 
                req = (struct app_msg_req *)
-                       ((struct rte_mbuf *)msg)->ctrl.data;
+                               rte_ctrlmbuf_data((struct rte_mbuf *)msg);
                req->type = APP_MSG_REQ_PING;
 
                /* Send request */