From: Kefu Chai Date: Sun, 22 Jul 2018 03:02:02 +0000 (+0800) Subject: msg/async/dpdk: fix FTBFS X-Git-Tag: v14.0.1~764^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2a17c65a3dec6076270a2c81713c2f8aa297ed18;p=ceph.git msg/async/dpdk: fix FTBFS partially reverts 39ffec28 Signed-off-by: Kefu Chai --- diff --git a/src/msg/async/dpdk/DPDKStack.h b/src/msg/async/dpdk/DPDKStack.h index 6953dce11ca..843975d0566 100644 --- a/src/msg/async/dpdk/DPDKStack.h +++ b/src/msg/async/dpdk/DPDKStack.h @@ -183,7 +183,7 @@ class NativeConnectedSocketImpl : public ConnectedSocketImpl { template DPDKServerSocketImpl::DPDKServerSocketImpl( Protocol& proto, uint16_t port, const SocketOptions &opt, int type) - : ServerSocketImpl(type), _listener(proto.listen(port)) {} + : ServerSocketImpl(type), _listener(proto.listen(port)) {} template int DPDKServerSocketImpl::accept(ConnectedSocket *s, const SocketOptions &options, entity_addr_t *out, Worker *w) { diff --git a/src/msg/async/dpdk/ethernet.h b/src/msg/async/dpdk/ethernet.h index 4efd9416cf2..5f3dec9ef10 100644 --- a/src/msg/async/dpdk/ethernet.h +++ b/src/msg/async/dpdk/ethernet.h @@ -32,11 +32,11 @@ 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 eaddr) { + ethernet_address(std::initializer_list 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; } }; diff --git a/src/msg/async/dpdk/net.cc b/src/msg/async/dpdk/net.cc index 85e82d61ee5..8b5c970e068 100644 --- a/src/msg/async/dpdk/net.cc +++ b/src/msg/async/dpdk/net.cc @@ -64,7 +64,7 @@ interface::interface(CephContext *cct, std::shared_ptr 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); diff --git a/src/msg/async/dpdk/shared_ptr.h b/src/msg/async/dpdk/shared_ptr.h index 382cda6b2df..d078063b33f 100644 --- a/src/msg/async/dpdk/shared_ptr.h +++ b/src/msg/async/dpdk/shared_ptr.h @@ -115,9 +115,9 @@ public: template friend class lw_shared_ptr; template - friend class internal::lw_shared_ptr_accessors_esft; + friend class ::internal::lw_shared_ptr_accessors_esft; template - friend class internal::lw_shared_ptr_accessors; + friend class ::internal::lw_shared_ptr_accessors; }; template @@ -133,9 +133,9 @@ struct shared_ptr_no_esft : private lw_shared_ptr_counter_base { template friend class lw_shared_ptr; template - friend class internal::lw_shared_ptr_accessors_no_esft; + friend class ::internal::lw_shared_ptr_accessors_no_esft; template - friend class internal::lw_shared_ptr_accessors; + friend class ::internal::lw_shared_ptr_accessors; }; @@ -209,7 +209,7 @@ struct lw_shared_ptr_accessors{ template class lw_shared_ptr { - using accessors = internal::lw_shared_ptr_accessors>; + using accessors = ::internal::lw_shared_ptr_accessors>; using concrete_type = typename accessors::concrete_type; mutable lw_shared_ptr_counter_base* _p = nullptr; private: