DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Ilya Maximets <i.maximets@samsung.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/*/base: allow use of experimental APIs in base code
Date: Mon, 3 Sep 2018 16:02:09 +0100	[thread overview]
Message-ID: <20180903150209.GA20568@bricha3-MOBL.ger.corp.intel.com> (raw)
In-Reply-To: <20180903145127eucas1p28e056d1d8be72d3cb9fec8668ccb42d4~Q62P_te0K0770907709eucas1p2T@eucas1p2.samsung.com>

On Mon, Sep 03, 2018 at 05:52:58PM +0300, Ilya Maximets wrote:
> On 03.09.2018 17:41, Ilya Maximets wrote:
> > On 31.08.2018 16:35, Bruce Richardson wrote:
> >> The driver setting of "allow_experimental_apis" was not being used when
> >> building the base code. To allow this we can manually put in a check
> >> in the base code files for the setting and set the appropriate cflag
> >> if it's needed.
> >>
> >> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > 
> > Tested-by: Ilya Maximets <i.maximets@samsung.com>
> > 
> >> ---
> >>  drivers/net/e1000/base/meson.build    | 3 +++
> >>  drivers/net/fm10k/base/meson.build    | 3 +++
> >>  drivers/net/i40e/base/meson.build     | 3 +++
> >>  drivers/net/ixgbe/base/meson.build    | 3 +++
> >>  drivers/net/octeontx/base/meson.build | 6 +++++-
> >>  drivers/net/sfc/base/meson.build      | 3 +++
> >>  drivers/net/thunderx/base/meson.build | 6 +++++-
> >>  7 files changed, 25 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/net/e1000/base/meson.build b/drivers/net/e1000/base/meson.build
> >> index 5e1716def..f26f24298 100644
> >> --- a/drivers/net/e1000/base/meson.build
> >> +++ b/drivers/net/e1000/base/meson.build
> >> @@ -25,6 +25,9 @@ error_cflags = ['-Wno-uninitialized', '-Wno-unused-parameter',
> >>  	'-Wno-unused-variable', '-Wno-misleading-indentation',
> >>  	'-Wno-implicit-fallthrough']
> >>  c_args = cflags
> >> +if allow_experimental_apis
> >> +	c_args += '-DALLOW_EXPERIMENTAL_API'
> >> +endif
> >>  foreach flag: error_cflags
> >>  	if cc.has_argument(flag)
> >>  		c_args += flag
> >> diff --git a/drivers/net/fm10k/base/meson.build b/drivers/net/fm10k/base/meson.build
> >> index a8fc5fa8b..5525cdc82 100644
> >> --- a/drivers/net/fm10k/base/meson.build
> >> +++ b/drivers/net/fm10k/base/meson.build
> >> @@ -15,6 +15,9 @@ error_cflags = ['-Wno-unused-parameter', '-Wno-unused-value',
> >>  	'-Wno-unused-variable', '-Wno-missing-field-initializers'
> >>  ]
> >>  c_args = cflags
> >> +if allow_experimental_apis
> >> +	c_args += '-DALLOW_EXPERIMENTAL_API'
> >> +endif
> >>  foreach flag: error_cflags
> >>  	if cc.has_argument(flag)
> >>  		c_args += flag
> >> diff --git a/drivers/net/i40e/base/meson.build b/drivers/net/i40e/base/meson.build
> >> index e6163eaa6..d4c8f872d 100644
> >> --- a/drivers/net/i40e/base/meson.build
> >> +++ b/drivers/net/i40e/base/meson.build
> >> @@ -16,6 +16,9 @@ error_cflags = ['-Wno-sign-compare', '-Wno-unused-value',
> >>  		'-Wno-strict-aliasing', '-Wno-unused-but-set-variable'
> 
> Actually, "-Wno-unused-but-set-variable" part is missing on master, so
> the patch could not be applied cleanly. I tested it after removing this
> flag from the patch to make it applicable.
> 
Ok, could be. I was testing applying a few other meson patches - such as
those from Luca - earlier. I think this should apply ok on top of those
other sets.

/Bruce

  reply	other threads:[~2018-09-03 15:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180831133527epcas4p1039efdef614bebf49d048846927a68a2@epcas4p1.samsung.com>
2018-08-31 13:35 ` Bruce Richardson
2018-08-31 13:59   ` Andrew Rybchenko
2018-09-03 14:41   ` Ilya Maximets
2018-09-03 14:52     ` Ilya Maximets
2018-09-03 15:02       ` Bruce Richardson [this message]
2018-09-19 17:29     ` Ferruh Yigit

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=20180903150209.GA20568@bricha3-MOBL.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=i.maximets@samsung.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).