]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/dpdk: fix FTBFS 23168/head
authorKefu Chai <kchai@redhat.com>
Sun, 22 Jul 2018 03:02:02 +0000 (11:02 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 22 Jul 2018 05:08:31 +0000 (13:08 +0800)
partially reverts 39ffec28

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

index 6953dce11ca24ce1c8a9e0ba637e34966b9df5e0..843975d0566700a48a38d365385df0e9256dd3e7 100644 (file)
@@ -183,7 +183,7 @@ class NativeConnectedSocketImpl : public ConnectedSocketImpl {
 template <typename Protocol>
 DPDKServerSocketImpl<Protocol>::DPDKServerSocketImpl(
   Protocol& proto, uint16_t port, const SocketOptions &opt, int type)
-  : ServerSocketImpl<Protocol>(type), _listener(proto.listen(port)) {}
+  : ServerSocketImpl(type), _listener(proto.listen(port)) {}
 
 template <typename Protocol>
 int DPDKServerSocketImpl<Protocol>::accept(ConnectedSocket *s, const SocketOptions &options, entity_addr_t *out, Worker *w) {
index 4efd9416cf2806a3c05e5a7acf3616ac350949e0..5f3dec9ef108b9e4bbf8bf34b24491fb40521804 100644 (file)
 struct ethernet_address {
   ethernet_address() {}
 
-  explicit ethernet_address(const uint8_t *eaddr) {
+  ethernet_address(const uint8_t *eaddr) {
     std::copy(eaddr, eaddr + 6, mac.begin());
   }
 
-  explicit ethernet_address(std::initializer_list<uint8_t> eaddr) {
+  ethernet_address(std::initializer_list<uint8_t> eaddr) {
     assert(eaddr.size() == mac.size());
     std::copy(eaddr.begin(), eaddr.end(), mac.begin());
   }
@@ -58,7 +58,7 @@ std::ostream& operator<<(std::ostream& os, const ethernet_address& ea);
 struct ethernet {
   using address = ethernet_address;
   static address broadcast_address() {
-      return  {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+      return {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
   }
   static constexpr uint16_t arp_hardware_type() { return 1; }
 };
index 85e82d61ee555ed7aae92533fb332847b9fdb61b..8b5c970e0687e36b8d7967de98469508a765b5a3 100644 (file)
@@ -64,7 +64,7 @@ interface::interface(CephContext *cct, std::shared_ptr<DPDKDevice> dev, EventCen
         eh->src_mac = _hw_address;
         eh->eth_proto = uint16_t(l3pv.proto_num);
         *eh = eh->hton();
-        ldout(cct, 10) << "=== tx === proto " << std::hex << uint16_t(l3pv.proto_num)
+        ldout(this->cct, 10) << "=== tx === proto " << std::hex << uint16_t(l3pv.proto_num)
                        << " " << _hw_address << " -> " << l3pv.to
                        << " length " << std::dec << l3pv.p.len() << dendl;
         p = std::move(l3pv.p);
index 382cda6b2dfe356a2c2dbbc068ce56c78a4e9992..d078063b33f6ec7c0338202a744d11bb53b24e61 100644 (file)
@@ -115,9 +115,9 @@ public:
     template <typename X>
     friend class lw_shared_ptr;
     template <typename X>
-    friend class internal::lw_shared_ptr_accessors_esft;
+    friend class ::internal::lw_shared_ptr_accessors_esft;
     template <typename X, class Y>
-    friend class internal::lw_shared_ptr_accessors;
+    friend class ::internal::lw_shared_ptr_accessors;
 };
 
 template <typename T>
@@ -133,9 +133,9 @@ struct shared_ptr_no_esft : private lw_shared_ptr_counter_base {
     template <typename X>
     friend class lw_shared_ptr;
     template <typename X>
-    friend class internal::lw_shared_ptr_accessors_no_esft;
+    friend class ::internal::lw_shared_ptr_accessors_no_esft;
     template <typename X, class Y>
-    friend class internal::lw_shared_ptr_accessors;
+    friend class ::internal::lw_shared_ptr_accessors;
 };
 
 
@@ -209,7 +209,7 @@ struct lw_shared_ptr_accessors<T, std::void_t<decltype(lw_shared_ptr_deleter<T>{
 
 template <typename T>
 class lw_shared_ptr {
-    using accessors = internal::lw_shared_ptr_accessors<std::remove_const_t<T>>;
+    using accessors = ::internal::lw_shared_ptr_accessors<std::remove_const_t<T>>;
     using concrete_type = typename accessors::concrete_type;
     mutable lw_shared_ptr_counter_base* _p = nullptr;
 private: