From f264782bea7651da2447648af07b428561c1e494 Mon Sep 17 00:00:00 2001 From: Qizhen Zhang Date: Mon, 11 Dec 2023 20:08:59 -0800 Subject: [PATCH] SPDK shouldn't clean up DPDK if init is suppressed --- .../StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DPDPU/StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c b/DPDPU/StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c index caa55c8..9c32ab7 100644 --- a/DPDPU/StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c +++ b/DPDPU/StorageEngine/DDSBackEndDPUService/Patches/spdk_dpdk_init.c @@ -625,9 +625,11 @@ spdk_env_init(const struct spdk_env_opts *opts) } rc = spdk_env_dpdk_post_init(legacy_mem); +#ifndef DPDK_INIT_SUPPRESSED if (rc == 0) { g_external_init = false; } +#endif return rc; }