]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/msgr: remove DPDK Non-runtime configure items 43540/head
authorChunsong Feng <fengchunsong@huawei.com>
Thu, 14 Oct 2021 11:23:27 +0000 (11:23 +0000)
committerChunsong Feng <fengchunsong@huawei.com>
Thu, 14 Oct 2021 11:41:36 +0000 (11:41 +0000)
The non-runtime configure items of the DPDK must be configured in the
ceph.conf to avoid assert in the _conf.set_val_or_die.

Signed-off-by: Chunsong Feng <fengchunsong@huawei.com>
src/test/msgr/test_async_networkstack.cc

index d369833b846b4d11be2d08c42c8c8287253bbd9c..14923fd7dfbfd385aa9a576d85fa1dc20da29f0a 100644 (file)
@@ -76,15 +76,11 @@ class NetworkWorkerTest : public ::testing::TestWithParam<const char*> {
       addr = "127.0.0.1:15000";
       port_addr = "127.0.0.1:15001";
     } else {
-      g_ceph_context->_conf.set_val_or_die("ms_type", "async+dpdk");
       g_ceph_context->_conf.set_val_or_die("ms_dpdk_debug_allow_loopback", "true");
       g_ceph_context->_conf.set_val_or_die("ms_async_op_threads", "2");
-      g_ceph_context->_conf.set_val_or_die("ms_dpdk_coremask", "0x7");
-      g_ceph_context->_conf.set_val_or_die("ms_dpdk_host_ipv4_addr", "172.16.218.3");
-      g_ceph_context->_conf.set_val_or_die("ms_dpdk_gateway_ipv4_addr", "172.16.218.2");
-      g_ceph_context->_conf.set_val_or_die("ms_dpdk_netmask_ipv4_addr", "255.255.255.0");
-      addr = "172.16.218.3:15000";
-      port_addr = "172.16.218.3:15001";
+      string ipv4_addr = g_ceph_context->_conf.get_val<std::string>("ms_dpdk_host_ipv4_addr");
+      addr = ipv4_addr + std::string(":15000");
+      port_addr = ipv4_addr + std::string(":15001");
     }
     stack = NetworkStack::create(g_ceph_context, GetParam());
     stack->start();