From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B9AB6A04DD; Thu, 22 Oct 2020 21:05:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 988505ABB; Thu, 22 Oct 2020 21:05:23 +0200 (CEST) Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id E8F095A9E for ; Thu, 22 Oct 2020 21:05:21 +0200 (CEST) Received: by mail-lf1-f66.google.com with SMTP id z2so3611251lfr.1 for ; Thu, 22 Oct 2020 12:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nPEymnDu07JBLNwxY417pnqATZDJvW6WECWa/vEsBVM=; b=hog4ZvfBJv7fgalGbJHU5658jyF+TzG7AFEKYu7/CEEC9CmDkcRhnpz5gRFeNcqrkh WwhXYPBj878xM23Eb3G47XDKbPWrj7F1E66ibWj9f4thoY9CJ+o0uRlOS5mlH3KgKyJn L9YPyl1gTQr1v3scXJJp5Y80tKnz3dTm42nrB0acKdBc25mMddyrnsjBYY36FD9Xd0j1 angjry3+5WM3CLCah0g+MPU1ZiRp4rmtNSgIPsWvDhOS7V/kRiRN4uRZCyTvOUv0zw/n RPkjLnucp6zDlgq8WpFLr8p04nZKeeeQOv8GUvyHR4JDmOATvREPA0bd2CQnk/1b/QeX ZXSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nPEymnDu07JBLNwxY417pnqATZDJvW6WECWa/vEsBVM=; b=TkYRpsxNz95rpcgDQV1CEZAP+Rj6A1VhCSUbT3aS2Dhof+55BSOqZejFR36TCq/9LS 0kIBgqHY4TdAOgjsvg3DTFEB950wp2zA2VSoD5dziQthFk94O15GRsxKPFU9gUdwCjba zhUocJfM82cbVgur+dfSjNSezZnoUCP6WI75qoObTC4iJ/wve6xBgca2xTqqr5sXm8Pn eKe9B8MRxMhlx1n5vxD3DOQcZPscPHG3P/q9zsdNz7Ik8QLz5vIWk2t/FRwFvszJCX76 +7l12Qh7NTQeqiMZN5BQP328xQC4IGkEiL5ElIZK1+Og5JL1NvqsaqBy7GSEECbcAzRI 25FA== X-Gm-Message-State: AOAM5329qS/eogHISNLrdwB9AEtRDjd/29j0FcGd9n0xD7O7g9PMAzxA rH/lmfy2osdsyn9R4rq0uwg= X-Google-Smtp-Source: ABdhPJx4l/s3XKAcgAK0suW5L3It2cx2i2fpL+PpH8sVLsmSTgB2OYAOmDnZsdTvIanPp4oDkM5H2g== X-Received: by 2002:ac2:5a03:: with SMTP id q3mr1450120lfn.527.1603393520416; Thu, 22 Oct 2020 12:05:20 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id l6sm358564lfk.267.2020.10.22.12.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 12:05:19 -0700 (PDT) Date: Thu, 22 Oct 2020 22:05:18 +0300 From: Dmitry Kozlyuk To: Pallavi Kadam Cc: dev@dpdk.org, thomas@monjalon.net, ranjit.menon@intel.com, Narcisa.Vasile@microsoft.com, talshn@nvidia.com Message-ID: <20201022220518.3ddab665@sovereign> In-Reply-To: <20201021202616.2732-1-pallavi.kadam@intel.com> References: <20201021202616.2732-1-pallavi.kadam@intel.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal: create a runtime directory on windows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > /* Detect if we are a primary or a secondary process */ > enum rte_proc_type_t > eal_proc_type_detect(void) > @@ -181,6 +231,13 @@ eal_parse_args(int argc, char **argv) > } > } > > + /* create runtime data directory */ > + if (internal_conf->no_shconf == 0 && > + eal_create_runtime_dir() < 0) { > + RTE_LOG(ERR, EAL, "Cannot create runtime directory\n"); > + return -1; > + } > + > if (eal_adjust_config(internal_conf) != 0) > return -1; Windows rte_eal_init() forces in-memory operation (internal_conf.in_memory=0) with a warning message, because runtime directory and shared configuration is only used for multi-process. Maybe do the same for no_shconf, as it's essentially the same, but for legacy mode?