From: Haomai Wang Date: Fri, 5 Aug 2016 07:46:16 +0000 (+0800) Subject: msg/async/Stack: allow to setup dpdkstack X-Git-Tag: v11.1.0~368^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57d6f4c5c6dc26b95068e87c31314c0844234fea;p=ceph.git msg/async/Stack: allow to setup dpdkstack Signed-off-by: Haomai Wang --- diff --git a/src/msg/async/Stack.cc b/src/msg/async/Stack.cc index 35cde1ce580..e60f040b059 100644 --- a/src/msg/async/Stack.cc +++ b/src/msg/async/Stack.cc @@ -20,6 +20,9 @@ #ifdef HAVE_RDMA #include "rdma/RDMAStack.h" #endif +#ifdef HAVE_DPDK +#include "dpdk/DPDKStack.h" +#endif #include "common/dout.h" #include "include/assert.h" @@ -62,6 +65,10 @@ std::shared_ptr NetworkStack::create(CephContext *c, const string else if (t == "rdma") return std::make_shared(c, t); #endif +#ifdef HAVE_DPDK + else if (t == "dpdk") + return std::make_shared(c, t); +#endif return nullptr; } @@ -73,6 +80,10 @@ Worker* NetworkStack::create_worker(CephContext *c, const string &type, unsigned #ifdef HAVE_RDMA else if (type == "rdma") return new RDMAWorker(c, i); +#endif +#ifdef HAVE_DPDK + else if (type == "dpdk") + return new DPDKWorker(c, i); #endif return nullptr; }