From a2b04717394ff260fc4c388915d5ca7bb085f9f9 Mon Sep 17 00:00:00 2001 From: Pallavi Kadam Date: Mon, 26 Oct 2020 11:44:58 -0700 Subject: [PATCH] eal/windows: allow running as non-admin Currently, since there is no runtime directory set, the code tries to create a file in C:\ which is only writable with administrator privileges. As a result, if the user is not admin, the application will fail. So, forcing no_shconf to 1 to prevent the code having to create files in the runtime directory. Suggested-by: Dmitry Kozlyuk Signed-off-by: Pallavi Kadam Reviewed-by: Ranjit Menon Acked-by: Dmitry Kozlyuk Acked-by: Anatoly Burakov Acked-by: Narcisa Vasile --- lib/librte_eal/windows/eal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index 6334aca03d..105549de1b 100644 --- a/lib/librte_eal/windows/eal.c +++ b/lib/librte_eal/windows/eal.c @@ -295,6 +295,7 @@ rte_eal_init(int argc, char **argv) RTE_LOG(WARNING, EAL, "Multi-process support is requested, " "but not available.\n"); internal_conf->in_memory = 1; + internal_conf->no_shconf = 1; } if (!internal_conf->no_hugetlbfs && (eal_hugepage_info_init() < 0)) { -- 2.20.1