examples/l3fwd-graph: check link query failure
[dpdk.git] / examples / eventdev_pipeline / pipeline_common.h
index ef23d96..c7245f7 100644 (file)
@@ -93,8 +93,8 @@ struct port_link {
        uint8_t priority;
 };
 
-struct fastpath_data *fdata;
-struct config_data cdata;
+extern struct fastpath_data *fdata;
+extern struct config_data cdata;
 
 static __rte_always_inline void
 exchange_mac(struct rte_mbuf *m)
@@ -104,8 +104,8 @@ exchange_mac(struct rte_mbuf *m)
 
        /* change mac addresses on packet (to use mbuf data) */
        eth = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
-       ether_addr_copy(&eth->d_addr, &addr);
-       ether_addr_copy(&addr, &eth->d_addr);
+       rte_ether_addr_copy(&eth->d_addr, &addr);
+       rte_ether_addr_copy(&addr, &eth->d_addr);
 }
 
 static __rte_always_inline void