]> git.droids-corp.org - dpdk.git/blobdiff - examples/exception_path/main.c
mbuf: replace data pointer by an offset
[dpdk.git] / examples / exception_path / main.c
index 5045ef81c5d07cd85f2b4dba2214cded05563c7d..f286bf205c7fad16430c08e5cca74dc5f1a60d37 100644 (file)
@@ -302,7 +302,8 @@ main_loop(__attribute__((unused)) void *arg)
                        if (m == NULL)
                                continue;
 
-                       ret = read(tap_fd, m->data, MAX_PACKET_SZ);
+                       ret = read(tap_fd, rte_pktmbuf_mtod(m, void *),
+                               MAX_PACKET_SZ);
                        lcore_stats[lcore_id].rx++;
                        if (unlikely(ret < 0)) {
                                FATAL_ERROR("Reading from %s interface failed",