]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/dpdk: define MARKER in .hh
authorKefu Chai <kchai@redhat.com>
Sun, 14 Feb 2021 07:31:46 +0000 (15:31 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Feb 2021 08:28:52 +0000 (16:28 +0800)
as we also reference this macro in DPDK.hh

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/async/dpdk/DPDK.cc
src/msg/async/dpdk/DPDK.h

index 4c5df6e578ceb28dffa86674975933b0a42bf73e..0c1f0b2af8a1bb8acc70c033ec6da4460799100b 100644 (file)
@@ -54,10 +54,6 @@ void* as_cookie(struct rte_pktmbuf_pool_private& p) {
   return &p;
 };
 
-#ifndef MARKER
-typedef void    *MARKER[0];   /**< generic marker for a point in a structure */
-#endif
-
 /******************* Net device related constatns *****************************/
 static constexpr uint16_t default_ring_size      = 512;
 
index 2bfbd3c75a48ec59932f01fb9fba1d40e282a841..ca9a124f2f7dab1b01a335701f4e17fc619bb581 100644 (file)
@@ -87,6 +87,10 @@ class DPDKDevice;
 class DPDKWorker;
 
 
+#ifndef MARKER
+typedef void    *MARKER[0];   /**< generic marker for a point in a structure */
+#endif
+
 class DPDKQueuePair {
   using packet_provider_type = std::function<std::optional<Packet> ()>;
  public: