]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/eventdev_pipeline/pipeline_common.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / dpdk / examples / eventdev_pipeline / pipeline_common.h
index a6cc912fbb9ecb9b99e963dad1cf22437d961cf4..c7245f7f0fe1f73a3bb88bd0adf2ecdfcfe5890c 100644 (file)
@@ -93,19 +93,19 @@ 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)
 {
-       struct ether_hdr *eth;
-       struct ether_addr addr;
+       struct rte_ether_hdr *eth;
+       struct rte_ether_addr addr;
 
        /* change mac addresses on packet (to use mbuf data) */
-       eth = rte_pktmbuf_mtod(m, struct ether_hdr *);
-       ether_addr_copy(&eth->d_addr, &addr);
-       ether_addr_copy(&addr, &eth->d_addr);
+       eth = rte_pktmbuf_mtod(m, struct rte_ether_hdr *);
+       rte_ether_addr_copy(&eth->d_addr, &addr);
+       rte_ether_addr_copy(&addr, &eth->d_addr);
 }
 
 static __rte_always_inline void