All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: Anand Rawat <anand.rawat@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"pallavi.kadam@intel.com" <pallavi.kadam@intel.com>,
	"jeffrey.b.shaw@intel.com" <jeffrey.b.shaw@intel.com>,
	"bruce.richardson@intel.com" <bruce.richardson@intel.com>,
	Ranjit Menon <ranjit.menon@intel.com>,
	Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Subject: Re: [PATCH v5 2/8] eal: add header files to support windows
Date: Thu, 28 Mar 2019 00:27:20 +0100	[thread overview]
Message-ID: <2639848.f1PDEsoNVO@xps> (raw)
In-Reply-To: <38de8645-b876-cce4-9594-38ffb487c82e@intel.com>

28/03/2019 00:10, Anand Rawat:
> On 3/27/2019 3:29 PM, Thomas Monjalon wrote:
> > 27/03/2019 22:23, Ranjit Menon:
> > > 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 <anand.rawat@intel.com>
> > >>> Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com>
> > >>> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > >>> Reviewed-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
> > >>> Reviewed-by: Ranjit Menon <ranjit.menon@intel.com>
> > >>> ---
> > >>>    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 <rte_config.h>
> > >>>
> > >>> +/* windows specific*/
> > >>> +#ifdef RTE_EXEC_ENV_WINDOWS
> > >>> +#include <rte_windows.h>
> > >>> +#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.
> >
> > Yes I agree with rte_os.h
> >
> >
> I can include this change in v6. I am looking to add rte_os.h under
> windows/eal/include/exec-env/ and include the header in rte_common.h
> as a separate patch. This change would require new files for linux and freebsd.
> What be should be the content of that?

I think you can add empty files.
Later we may discover some definitions to move from common code to rte_os.h.

  reply	other threads:[~2019-03-27 23:27 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06  4:16 [PATCH v2 0/6] HelloWorld example for windows Anand Rawat
2019-03-06  4:16 ` [PATCH v2 1/6] eal: eal stub to add windows support Anand Rawat
2019-03-06 10:03   ` Thomas Monjalon
2019-03-06 11:20     ` Bruce Richardson
2019-03-06 11:36       ` Thomas Monjalon
2019-03-06 11:52         ` Richardson, Bruce
2019-03-07  1:04           ` Anand Rawat
2019-03-07  8:59             ` Thomas Monjalon
2019-03-07  1:19       ` Anand Rawat
2019-03-06  4:16 ` [PATCH v2 2/6] eal: add header files to support windows Anand Rawat
2019-03-06 11:31   ` Thomas Monjalon
2019-03-07  3:27     ` Anand Rawat
2019-03-07  8:45       ` Thomas Monjalon
2019-03-07 10:24         ` Bruce Richardson
2019-03-07 11:33           ` Thomas Monjalon
2019-03-07 11:53             ` Richardson, Bruce
2019-03-06  4:16 ` [PATCH v2 3/6] eal: add headers for compatibility with windows environment Anand Rawat
2019-03-06  4:16 ` [PATCH v2 4/6] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-06  4:16 ` [PATCH v2 5/6] examples: add meson changes for windows Anand Rawat
2019-03-06  4:16 ` [PATCH v2 6/6] doc: add documention " Anand Rawat
2019-03-07 17:03   ` Kovacevic, Marko
2019-03-07 18:46     ` Anand Rawat
2019-03-11 12:45   ` Jerin Jacob Kollanukkaran
2019-03-11 13:51     ` Richardson, Bruce
2019-03-11 15:30       ` Raslan Darawsheh
2019-03-11 15:46       ` Jerin Jacob Kollanukkaran
2019-03-14  0:04     ` Anand Rawat
2019-03-06  8:29 ` [PATCH v2 0/6] HelloWorld example " Thomas Monjalon
2019-03-06 22:45   ` Anand Rawat
2019-03-06 23:03     ` Thomas Monjalon
2019-03-20  0:40 ` [PATCH v3 0/8] " Anand Rawat
2019-03-20  0:40   ` [PATCH v3 1/8] eal: eal stub to add windows support Anand Rawat
2019-03-20  0:40   ` [PATCH v3 2/8] eal: add header files to support windows Anand Rawat
2019-03-20  0:40   ` [PATCH v3 3/8] kvargs: adding a module definition file Anand Rawat
2019-03-20  0:40   ` [PATCH v3 4/8] eal: sys/queue.h implementation for windows Anand Rawat
2019-03-20  0:40   ` [PATCH v3 5/8] eal: add headers for compatibility with windows environment Anand Rawat
2019-03-20  0:40   ` [PATCH v3 6/8] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-20  0:40   ` [PATCH v3 7/8] doc: add documention for windows Anand Rawat
2019-03-20  0:40   ` [PATCH v3 8/8] build: meson changes to build on windows Anand Rawat
2019-03-22 22:54 ` [PATCH v4 0/8] HelloWorld example for windows Anand Rawat
2019-03-22 22:54   ` [PATCH v4 1/8] eal: eal stub to add windows support Anand Rawat
2019-03-22 22:54   ` [PATCH v4 2/8] eal: add header files to support windows Anand Rawat
2019-03-22 22:55   ` [PATCH v4 3/8] kvargs: adding a module definition file Anand Rawat
2019-03-22 22:55   ` [PATCH v4 4/8] eal: sys/queue.h implementation for windows Anand Rawat
2019-03-22 22:55   ` [PATCH v4 5/8] eal: add headers for compatibility with windows environment Anand Rawat
2019-03-22 22:55   ` [PATCH v4 6/8] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-22 22:55   ` [PATCH v4 7/8] doc: add documention for windows Anand Rawat
2019-03-23 16:51     ` Jerin Jacob Kollanukkaran
2019-03-25 10:24       ` Bruce Richardson
2019-03-25 17:43         ` Pallavi Kadam
2019-03-22 22:55   ` [PATCH v4 8/8] build: meson changes to build on windows Anand Rawat
2019-03-25 10:32     ` Bruce Richardson
2019-03-25 18:47   ` [PATCH v4 0/8] HelloWorld example for windows Harini Ramakrishnan
2019-03-26  6:02 ` [PATCH v5 " Anand Rawat
2019-03-26  6:02   ` [PATCH v5 1/8] eal: eal stub to add windows support Anand Rawat
2019-03-26 16:29     ` Harini Ramakrishnan
     [not found]     ` <MWHPR21MB0638113CDE9F61F8EC3E63D0EF5F0@MWHPR21MB0638.namprd21.prod.outlook.com>
2019-03-26 22:50       ` Omar Cardona
2019-03-26  6:02   ` [PATCH v5 2/8] eal: add header files to support windows Anand Rawat
2019-03-26 10:20     ` Jerin Jacob Kollanukkaran
2019-03-27 21:23       ` Ranjit Menon
2019-03-27 22:29         ` Thomas Monjalon
2019-03-27 23:10           ` Anand Rawat
2019-03-27 23:27             ` Thomas Monjalon [this message]
2019-03-26 16:30     ` Harini Ramakrishnan
2019-03-26  6:02   ` [PATCH v5 3/8] kvargs: adding a module definition file Anand Rawat
2019-03-26 10:32     ` Jerin Jacob Kollanukkaran
2019-03-26 10:58       ` Bruce Richardson
2019-03-26 13:37         ` [EXT] " Jerin Jacob Kollanukkaran
2019-03-26 13:55           ` Thomas Monjalon
2019-03-26 14:41             ` Bruce Richardson
2019-03-26 15:07               ` Thomas Monjalon
2019-03-26 15:17                 ` Bruce Richardson
2019-03-26 15:22                   ` Thomas Monjalon
2019-03-26 14:40           ` Bruce Richardson
2019-03-26 15:35             ` Jerin Jacob Kollanukkaran
2019-03-26 16:46               ` Bruce Richardson
2019-03-26 23:13                 ` Anand Rawat
2019-03-26 16:31     ` Harini Ramakrishnan
2019-03-26 19:02     ` Stephen Hemminger
2019-03-26  6:02   ` [PATCH v5 4/8] eal: sys/queue.h implementation for windows Anand Rawat
2019-03-26 16:31     ` Harini Ramakrishnan
2019-03-26 19:06     ` Stephen Hemminger
2019-03-26 20:52       ` Thomas Monjalon
2019-03-26 21:14         ` Jeff Shaw
2019-03-26 21:47           ` Thomas Monjalon
2019-03-26 21:54             ` Jeff Shaw
2019-03-26 22:23               ` Thomas Monjalon
2019-03-26 22:34                 ` Jeff Shaw
2019-03-26 23:00                   ` Thomas Monjalon
2019-03-26 23:43                     ` Jeff Shaw
2019-03-26 23:54                       ` Thomas Monjalon
2019-03-27 21:16       ` Anand Rawat
2019-03-26  6:02   ` [PATCH v5 5/8] eal: add headers for compatibility with windows environment Anand Rawat
2019-03-26 16:33     ` Harini Ramakrishnan
2019-03-26  6:02   ` [PATCH v5 6/8] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-26 16:32     ` Harini Ramakrishnan
2019-03-26  6:02   ` [PATCH v5 7/8] doc: add documention for windows Anand Rawat
2019-03-26 10:27     ` Jerin Jacob Kollanukkaran
2019-03-26 10:37     ` David Marchand
2019-03-26 18:29       ` Anand Rawat
2019-03-26 16:33     ` Harini Ramakrishnan
2019-03-26  6:02   ` [PATCH v5 8/8] build: meson changes to build on windows Anand Rawat
2019-03-26 16:34     ` Harini Ramakrishnan
2019-03-26 16:28   ` [PATCH v5 0/8] HelloWorld example for windows Harini Ramakrishnan
     [not found]   ` <MWHPR21MB06380D6FA7CF5513DDC3820AEF5F0@MWHPR21MB0638.namprd21.prod.outlook.com>
2019-03-26 22:43     ` Omar Cardona
2019-03-28  2:21 ` [PATCH v6 " Anand Rawat
2019-03-28  2:21   ` [PATCH v6 1/8] eal: eal stub to add windows support Anand Rawat
2019-03-28 19:27     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 2/8] eal: add header files to support os specifics Anand Rawat
2019-03-28 19:27     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 3/8] build: add module definition file for windows Anand Rawat
2019-03-28 19:29     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 4/8] eal: sys/queue.h implementation " Anand Rawat
2019-03-28  2:30     ` Varghese, Vipin
2019-03-28  2:39       ` Anand Rawat
2019-03-28  3:29         ` Varghese, Vipin
2019-03-28 19:30     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 5/8] eal: add headers for compatibility with windows Anand Rawat
2019-03-28 19:29     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 6/8] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-28 19:32     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 7/8] doc: add documentation for windows Anand Rawat
2019-03-28 19:31     ` Harini Ramakrishnan
2019-03-28  2:21   ` [PATCH v6 8/8] build: meson changes to build on windows Anand Rawat
2019-03-28 15:10     ` Thomas Monjalon
2019-03-28 19:30     ` Harini Ramakrishnan
2019-03-28 19:28   ` [PATCH v6 0/8] HelloWorld example for windows Harini Ramakrishnan
2019-03-28 23:24 ` [PATCH v7 " Anand Rawat
2019-03-28 23:24   ` [PATCH v7 1/8] eal: eal stub to add windows support Anand Rawat
2019-04-01 16:17     ` Bruce Richardson
2019-04-01 16:34     ` Bruce Richardson
2019-04-01 17:06       ` Anand Rawat
2019-04-01 20:10         ` Bruce Richardson
2019-03-28 23:24   ` [PATCH v7 2/8] eal: add header files to support os specifics Anand Rawat
2019-04-01 23:09     ` Thomas Monjalon
2019-04-02  3:52       ` Anand Rawat
2019-03-28 23:24   ` [PATCH v7 3/8] build: add module definition file for windows Anand Rawat
2019-03-28 23:24   ` [PATCH v7 4/8] eal: sys/queue.h implementation " Anand Rawat
2019-03-28 23:24   ` [PATCH v7 5/8] eal: add headers for compatibility with windows Anand Rawat
2019-03-28 23:24   ` [PATCH v7 6/8] eal: add minimum viable code for eal on windows Anand Rawat
2019-03-28 23:24   ` [PATCH v7 7/8] doc: add documentation for windows Anand Rawat
2019-03-29  0:06     ` Harini Ramakrishnan
2019-04-01 23:22     ` Thomas Monjalon
2019-04-02  1:01       ` Pallavi Kadam
2019-04-02  7:15         ` Thomas Monjalon
2019-03-28 23:24   ` [PATCH v7 8/8] build: meson changes to build on windows Anand Rawat
2019-04-01 23:25     ` Thomas Monjalon
2019-04-02  3:47       ` Anand Rawat
2019-03-29  0:12   ` [PATCH v7 0/8] HelloWorld example for windows Harini Ramakrishnan
2019-04-02  3:54 ` [PATCH v8 00/10] HelloWorld example for Windows Anand Rawat
2019-04-02  3:54   ` [PATCH v8 01/10] eal: eal stub to add windows support Anand Rawat
2019-04-02  3:54   ` [PATCH v8 02/10] meson: required changes for windows Anand Rawat
2019-04-02 23:04     ` Thomas Monjalon
2019-04-02 23:23       ` Pallavi Kadam
2019-04-02  3:54   ` [PATCH v8 03/10] eal: add new rte_os.h header to build system Anand Rawat
2019-04-02 19:56     ` Thomas Monjalon
2019-04-02 20:47       ` Thomas Monjalon
2019-04-02 22:11         ` Anand Rawat
2019-04-02 22:32           ` Thomas Monjalon
2019-04-02 22:34             ` Anand Rawat
2019-04-02  3:54   ` [PATCH v8 04/10] eal: update common headers to use rte_os.h Anand Rawat
2019-04-02  3:54   ` [PATCH v8 05/10] build: add module definition file for windows Anand Rawat
2019-04-02 23:03     ` Thomas Monjalon
2019-04-02  3:54   ` [PATCH v8 06/10] eal: sys/queue.h implementation " Anand Rawat
2019-04-02  3:54   ` [PATCH v8 07/10] eal: add headers for compatibility with windows Anand Rawat
2019-04-02  3:54   ` [PATCH v8 08/10] eal: add minimum viable code for eal on windows Anand Rawat
2019-04-02 20:06     ` Thomas Monjalon
2019-04-02 21:21       ` Pallavi Kadam
2019-04-02 21:38         ` Thomas Monjalon
2019-04-02 21:46           ` Pallavi Kadam
2019-04-02 22:39     ` Thomas Monjalon
2019-04-02 22:57       ` Anand Rawat
2019-04-02  3:54   ` [PATCH v8 09/10] doc: add documentation for windows Anand Rawat
2019-04-02  3:54   ` [PATCH v8 10/10] build: meson changes to build on windows Anand Rawat
2019-04-02 22:51     ` Thomas Monjalon
2019-04-02 23:01       ` Anand Rawat
2019-04-02 23:25   ` [PATCH v8 00/10] HelloWorld example for Windows Thomas Monjalon
2019-04-02 23:49     ` Anand Rawat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2639848.f1PDEsoNVO@xps \
    --to=thomas@monjalon.net \
    --cc=anand.rawat@intel.com \
    --cc=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=jeffrey.b.shaw@intel.com \
    --cc=jerinj@marvell.com \
    --cc=pallavi.kadam@intel.com \
    --cc=ranjit.menon@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.