mbuf: add rte prefix to offload flags
[dpdk.git] / examples / ptpclient / ptpclient.c
index 33b297e..0e586e7 100644 (file)
@@ -463,7 +463,7 @@ parse_fup(struct ptpv2_data_slave_ordinary *ptp_data)
                           sizeof(struct clock_id));
 
                /* Enable flag for hardware timestamping. */
-               created_pkt->ol_flags |= PKT_TX_IEEE1588_TMST;
+               created_pkt->ol_flags |= RTE_MBUF_F_TX_IEEE1588_TMST;
 
                /*Read value from NIC to prevent latching with old value. */
                rte_eth_timesync_read_tx_timestamp(ptp_data->portid,
@@ -606,10 +606,6 @@ lcore_main(void)
        unsigned nb_rx;
        struct rte_mbuf *m;
 
-       /*
-        * Check that the port is on the same NUMA node as the polling thread
-        * for best performance.
-        */
        printf("\nCore %u Waiting for SYNC packets. [Ctrl+C to quit]\n",
                        rte_lcore_id());
 
@@ -625,7 +621,7 @@ lcore_main(void)
                        if (likely(nb_rx == 0))
                                continue;
 
-                       if (m->ol_flags & PKT_RX_IEEE1588_PTP)
+                       if (m->ol_flags & RTE_MBUF_F_RX_IEEE1588_PTP)
                                parse_ptp_frames(portid, m);
 
                        rte_pktmbuf_free(m);
@@ -788,5 +784,8 @@ main(int argc, char *argv[])
        /* Call lcore_main on the main core only. */
        lcore_main();
 
+       /* clean up the EAL */
+       rte_eal_cleanup();
+
        return 0;
 }