]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/init.c
mbuf: remove rte_ctrlmbuf
[dpdk.git] / examples / ip_pipeline / init.c
index 947e152a1b8a89a70093fc4d5d2937316a13cbce..e3ebd464d1c6c12d28990765e420f734fd7cc54a 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 */