From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id D5FA8A05D3 for ; Wed, 27 Mar 2019 22:23:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8E6014CBD; Wed, 27 Mar 2019 22:23:03 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 46E974C8D for ; Wed, 27 Mar 2019 22:23:02 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2019 14:23:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,277,1549958400"; d="scan'208";a="158995481" Received: from rmenon-mobl.amr.corp.intel.com (HELO [134.134.172.77]) ([134.134.172.77]) by fmsmga001.fm.intel.com with ESMTP; 27 Mar 2019 14:23:00 -0700 To: Jerin Jacob Kollanukkaran , "anand.rawat@intel.com" , "dev@dpdk.org" Cc: "pallavi.kadam@intel.com" , "thomas@monjalon.net" , "jeffrey.b.shaw@intel.com" , "bruce.richardson@intel.com" References: <20190306041634.12976-1-anand.rawat@intel.com> <20190326060238.9884-1-anand.rawat@intel.com> <20190326060238.9884-3-anand.rawat@intel.com> <944cfe276e570e3e6feb01a7da7c6fa03de22ee4.camel@marvell.com> From: Ranjit Menon Message-ID: Date: Wed, 27 Mar 2019 14:23:00 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <944cfe276e570e3e6feb01a7da7c6fa03de22ee4.camel@marvell.com> Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v5 2/8] eal: add header files to support 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" Message-ID: <20190327212300.W4No-ZP86ydndmIzPjuNRAmbT6Y2vou2bwJvZd3AwdQ@z> On 3/26/2019 3:20 AM, Jerin Jacob Kollanukkaran wrote: > On Mon, 2019-03-25 at 23:02 -0700, Anand Rawat wrote: >> Added header files to support windows on x86 platforms. >> Updated rte_common.h to include rte_windows.h for windows >> build. Updated lib/meson.build to create shared libraries >> on windows. Added def file to list the exports for the >> eal library. >> >> Signed-off-by: Anand Rawat >> Signed-off-by: Pallavi Kadam >> Signed-off-by: Bruce Richardson >> Reviewed-by: Jeff Shaw >> Reviewed-by: Ranjit Menon >> --- >> lib/librte_eal/common/include/rte_common.h | 7 ++++- >> .../common/include/rte_string_fns.h | 4 ++- >> lib/librte_eal/rte_eal_exports.def | 9 ++++++ >> .../windows/eal/include/rte_windows.h | 30 >> +++++++++++++++++++ >> lib/librte_eal/windows/eal/meson.build | 2 ++ >> lib/meson.build | 19 ++++++++++-- >> 6 files changed, 66 insertions(+), 5 deletions(-) >> create mode 100644 lib/librte_eal/rte_eal_exports.def >> create mode 100644 lib/librte_eal/windows/eal/include/rte_windows.h >> >> diff --git a/lib/librte_eal/common/include/rte_common.h >> b/lib/librte_eal/common/include/rte_common.h >> index 7178ba1e9..4775c84f5 100644 >> --- a/lib/librte_eal/common/include/rte_common.h >> +++ b/lib/librte_eal/common/include/rte_common.h >> @@ -1,5 +1,5 @@ >> /* SPDX-License-Identifier: BSD-3-Clause >> - * Copyright(c) 2010-2014 Intel Corporation >> + * Copyright(c) 2010-2019 Intel Corporation >> */ >> >> #ifndef _RTE_COMMON_H_ >> @@ -24,6 +24,11 @@ extern "C" { >> >> #include >> >> +/* windows specific*/ >> +#ifdef RTE_EXEC_ENV_WINDOWS >> +#include >> +#endif >> + > > IMO, Updating the rte_common.h for each execution environment is not > clean and unnecessary #ifdef clutter in the common code. > > I think, it can be fixed by adding new os or eal specific header file > at the following location and simply include it(without any #ifdef) > > lib/librte_eal/linux/eal/include/exec-env/rte_eal.h > lib/librte_eal/freebsd/eal/include/exec-env/rte_eal.h > lib/librte_eal/windows/eal/include/exec-env/rte_eal.h # the content of > exiting rte_windows.h goes here. > > It can be rte_eal.h or rte_os.h or anything similar. > > This was done based on a suggestion from Thomas: (http://patches.dpdk.org/patch/50844/) But, I agree. Your suggestion would be a good enhancement. There is already an existing rte_eal.h in common/include, so an rte_os.h or something similar might make sense. ranjit m.