* [dpdk-dev] [PATCH] config: add default linux configuration
@ 2016-01-28 14:31 Bernard Iremonger
2016-02-12 12:31 ` Panu Matilainen
2016-02-16 11:16 ` Ferruh Yigit
0 siblings, 2 replies; 10+ messages in thread
From: Bernard Iremonger @ 2016-01-28 14:31 UTC (permalink / raw)
To: dev
add config/defconfig_x86_64-default-linuxapp-gcc file.
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
config/defconfig_x86_64-default-linuxapp-gcc | 42 ++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 config/defconfig_x86_64-default-linuxapp-gcc
diff --git a/config/defconfig_x86_64-default-linuxapp-gcc b/config/defconfig_x86_64-default-linuxapp-gcc
new file mode 100644
index 0000000..d1b9dbf
--- /dev/null
+++ b/config/defconfig_x86_64-default-linuxapp-gcc
@@ -0,0 +1,42 @@
+# BSD LICENSE
+#
+# Copyright(c) 2016 Intel Corporation. All rights reserved.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# * Neither the name of Intel Corporation nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#include "common_linuxapp"
+
+CONFIG_RTE_MACHINE="default"
+
+CONFIG_RTE_ARCH="x86_64"
+CONFIG_RTE_ARCH_X86_64=y
+CONFIG_RTE_ARCH_64=y
+
+CONFIG_RTE_TOOLCHAIN="gcc"
+CONFIG_RTE_TOOLCHAIN_GCC=y
--
2.6.3
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-01-28 14:31 [dpdk-dev] [PATCH] config: add default linux configuration Bernard Iremonger
@ 2016-02-12 12:31 ` Panu Matilainen
2016-02-12 15:04 ` Thomas Monjalon
2016-02-16 11:16 ` Ferruh Yigit
1 sibling, 1 reply; 10+ messages in thread
From: Panu Matilainen @ 2016-02-12 12:31 UTC (permalink / raw)
To: Bernard Iremonger, dev, Thomas Monjalon
On 01/28/2016 04:31 PM, Bernard Iremonger wrote:
> add config/defconfig_x86_64-default-linuxapp-gcc file.
>
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> ---
> config/defconfig_x86_64-default-linuxapp-gcc | 42 ++++++++++++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 config/defconfig_x86_64-default-linuxapp-gcc
>
There was a related discussion back in March, see
http://dpdk.org/ml/archives/dev/2015-March/014626.html
I intended to go with that and submit patch(es) but the amount of
duplication and new files gets mind-numbing when you make them for all
existing targets. In other words, this approach doesn't scale.
Thomas, I remember seeing a plan to include a configure script in DPDK
many times in past months. Do you have something specific in mind, ie
actually use autoconf or just a custom hand-written script named
"configure" that roughly resembles autoconf configure or...?
- Panu -
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-12 12:31 ` Panu Matilainen
@ 2016-02-12 15:04 ` Thomas Monjalon
2016-02-12 16:59 ` Ferruh Yigit
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Monjalon @ 2016-02-12 15:04 UTC (permalink / raw)
To: Panu Matilainen; +Cc: dev
2016-02-12 14:31, Panu Matilainen:
> On 01/28/2016 04:31 PM, Bernard Iremonger wrote:
> > add config/defconfig_x86_64-default-linuxapp-gcc file.
>
> There was a related discussion back in March, see
> http://dpdk.org/ml/archives/dev/2015-March/014626.html
>
> I intended to go with that and submit patch(es) but the amount of
> duplication and new files gets mind-numbing when you make them for all
> existing targets. In other words, this approach doesn't scale.
>
> Thomas, I remember seeing a plan to include a configure script in DPDK
> many times in past months. Do you have something specific in mind, ie
> actually use autoconf or just a custom hand-written script named
> "configure" that roughly resembles autoconf configure or...?
A script named "configure" looks fine.
Bruce introduced the idea of calling "make config" in the script:
http://dpdk.org/ml/archives/dev/2015-October/026256.html
Maybe it is a good start to move forward.
I think we have to choose between a script and a kconfig approach giving
the menus GUIs as bonus.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-12 15:04 ` Thomas Monjalon
@ 2016-02-12 16:59 ` Ferruh Yigit
2016-02-12 17:13 ` Thomas Monjalon
0 siblings, 1 reply; 10+ messages in thread
From: Ferruh Yigit @ 2016-02-12 16:59 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Fri, Feb 12, 2016 at 04:04:07PM +0100, Thomas Monjalon wrote:
> 2016-02-12 14:31, Panu Matilainen:
> > On 01/28/2016 04:31 PM, Bernard Iremonger wrote:
> > > add config/defconfig_x86_64-default-linuxapp-gcc file.
> >
> > There was a related discussion back in March, see
> > http://dpdk.org/ml/archives/dev/2015-March/014626.html
> >
> > I intended to go with that and submit patch(es) but the amount of
> > duplication and new files gets mind-numbing when you make them for all
> > existing targets. In other words, this approach doesn't scale.
> >
> > Thomas, I remember seeing a plan to include a configure script in DPDK
> > many times in past months. Do you have something specific in mind, ie
> > actually use autoconf or just a custom hand-written script named
> > "configure" that roughly resembles autoconf configure or...?
>
> A script named "configure" looks fine.
> Bruce introduced the idea of calling "make config" in the script:
> http://dpdk.org/ml/archives/dev/2015-October/026256.html
> Maybe it is a good start to move forward.
> I think we have to choose between a script and a kconfig approach giving
> the menus GUIs as bonus.
>
Another thing kconfig can help is to resolve dependencies, harder to make this with a
script. Currently we already have dependencies, although not complex, and resolved
within makefile.
I believe correct place to solve them is a configuration tool so that makefiles or
source files can be clean.
Thanks,
ferruh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-12 16:59 ` Ferruh Yigit
@ 2016-02-12 17:13 ` Thomas Monjalon
2016-02-12 17:23 ` Ferruh Yigit
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Monjalon @ 2016-02-12 17:13 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev
2016-02-12 16:59, Ferruh Yigit:
> On Fri, Feb 12, 2016 at 04:04:07PM +0100, Thomas Monjalon wrote:
> > 2016-02-12 14:31, Panu Matilainen:
> > > On 01/28/2016 04:31 PM, Bernard Iremonger wrote:
> > > > add config/defconfig_x86_64-default-linuxapp-gcc file.
> > >
> > > There was a related discussion back in March, see
> > > http://dpdk.org/ml/archives/dev/2015-March/014626.html
> > >
> > > I intended to go with that and submit patch(es) but the amount of
> > > duplication and new files gets mind-numbing when you make them for all
> > > existing targets. In other words, this approach doesn't scale.
> > >
> > > Thomas, I remember seeing a plan to include a configure script in DPDK
> > > many times in past months. Do you have something specific in mind, ie
> > > actually use autoconf or just a custom hand-written script named
> > > "configure" that roughly resembles autoconf configure or...?
> >
> > A script named "configure" looks fine.
> > Bruce introduced the idea of calling "make config" in the script:
> > http://dpdk.org/ml/archives/dev/2015-October/026256.html
> > Maybe it is a good start to move forward.
> > I think we have to choose between a script and a kconfig approach giving
> > the menus GUIs as bonus.
> >
> Another thing kconfig can help is to resolve dependencies, harder to make this with a
> script. Currently we already have dependencies, although not complex, and resolved
> within makefile.
Dependencies are not so well resolved currently.
We have internal and external dependencies.
The internal ones would be better resolved with kconfig or a script.
The external dependencies are often managed by autotools but I'm sure
we prefer have a clean script instead of this beast ;)
> I believe correct place to solve them is a configuration tool so that makefiles or
> source files can be clean.
I think a configuration tool/script must help to make a working config.
But do you really think we should remove the gatekeepers in Makefiles?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-12 17:13 ` Thomas Monjalon
@ 2016-02-12 17:23 ` Ferruh Yigit
0 siblings, 0 replies; 10+ messages in thread
From: Ferruh Yigit @ 2016-02-12 17:23 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Fri, Feb 12, 2016 at 06:13:49PM +0100, Thomas Monjalon wrote:
> 2016-02-12 16:59, Ferruh Yigit:
> > On Fri, Feb 12, 2016 at 04:04:07PM +0100, Thomas Monjalon wrote:
> > > 2016-02-12 14:31, Panu Matilainen:
> > > > On 01/28/2016 04:31 PM, Bernard Iremonger wrote:
> > > > > add config/defconfig_x86_64-default-linuxapp-gcc file.
> > > >
> > > > There was a related discussion back in March, see
> > > > http://dpdk.org/ml/archives/dev/2015-March/014626.html
> > > >
> > > > I intended to go with that and submit patch(es) but the amount of
> > > > duplication and new files gets mind-numbing when you make them for all
> > > > existing targets. In other words, this approach doesn't scale.
> > > >
> > > > Thomas, I remember seeing a plan to include a configure script in DPDK
> > > > many times in past months. Do you have something specific in mind, ie
> > > > actually use autoconf or just a custom hand-written script named
> > > > "configure" that roughly resembles autoconf configure or...?
> > >
> > > A script named "configure" looks fine.
> > > Bruce introduced the idea of calling "make config" in the script:
> > > http://dpdk.org/ml/archives/dev/2015-October/026256.html
> > > Maybe it is a good start to move forward.
> > > I think we have to choose between a script and a kconfig approach giving
> > > the menus GUIs as bonus.
> > >
> > Another thing kconfig can help is to resolve dependencies, harder to make this with a
> > script. Currently we already have dependencies, although not complex, and resolved
> > within makefile.
>
> Dependencies are not so well resolved currently.
> We have internal and external dependencies.
> The internal ones would be better resolved with kconfig or a script.
> The external dependencies are often managed by autotools but I'm sure
> we prefer have a clean script instead of this beast ;)
>
> > I believe correct place to solve them is a configuration tool so that makefiles or
> > source files can be clean.
>
> I think a configuration tool/script must help to make a working config.
> But do you really think we should remove the gatekeepers in Makefiles?
>
I think we should remove combination of config related "if" checks from makefiles,
"ENABLE-$(CONFIG_X) += y" should be sufficient.
And if CONFIG_X should be set or not is be problem of the config tool.
Thanks,
ferruh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-01-28 14:31 [dpdk-dev] [PATCH] config: add default linux configuration Bernard Iremonger
2016-02-12 12:31 ` Panu Matilainen
@ 2016-02-16 11:16 ` Ferruh Yigit
2016-02-16 11:23 ` Thomas Monjalon
1 sibling, 1 reply; 10+ messages in thread
From: Ferruh Yigit @ 2016-02-16 11:16 UTC (permalink / raw)
To: Bernard Iremonger; +Cc: dev
On Thu, Jan 28, 2016 at 02:31:45PM +0000, Bernard Iremonger wrote:
> add config/defconfig_x86_64-default-linuxapp-gcc file.
>
> Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
Apart from configuration related discussion,
this patch was helpful for me to notice "default" machine type, and difference between "native",
so I believe it is good to have this as sample config.
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Also not scope of this patch but I agree on Bruce's comment on renaming "default" machine type to "generic",
I can send a patch for this if there is a demand.
Regards,
ferruh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-16 11:16 ` Ferruh Yigit
@ 2016-02-16 11:23 ` Thomas Monjalon
2016-02-16 12:08 ` Ferruh Yigit
0 siblings, 1 reply; 10+ messages in thread
From: Thomas Monjalon @ 2016-02-16 11:23 UTC (permalink / raw)
To: Ferruh Yigit; +Cc: dev
2016-02-16 11:16, Ferruh Yigit:
> On Thu, Jan 28, 2016 at 02:31:45PM +0000, Bernard Iremonger wrote:
> > add config/defconfig_x86_64-default-linuxapp-gcc file.
> >
> > Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
>
> Apart from configuration related discussion,
> this patch was helpful for me to notice "default" machine type, and difference between "native",
> so I believe it is good to have this as sample config.
The justification is strange. We are not going to have a config file
for every combinations.
Defaulting defconfig files to the native machine natural to me.
> Also not scope of this patch but I agree on Bruce's comment on renaming "default" machine type to "generic",
> I can send a patch for this if there is a demand.
default is an Intel core 2. Why generic is a better name?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-16 11:23 ` Thomas Monjalon
@ 2016-02-16 12:08 ` Ferruh Yigit
2016-02-17 10:42 ` Iremonger, Bernard
0 siblings, 1 reply; 10+ messages in thread
From: Ferruh Yigit @ 2016-02-16 12:08 UTC (permalink / raw)
To: Thomas Monjalon; +Cc: dev
On Tue, Feb 16, 2016 at 12:23:12PM +0100, Thomas Monjalon wrote:
> 2016-02-16 11:16, Ferruh Yigit:
> > On Thu, Jan 28, 2016 at 02:31:45PM +0000, Bernard Iremonger wrote:
> > > add config/defconfig_x86_64-default-linuxapp-gcc file.
> > >
> > > Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> >
> > Apart from configuration related discussion,
> > this patch was helpful for me to notice "default" machine type, and difference between "native",
> > so I believe it is good to have this as sample config.
>
> The justification is strange. We are not going to have a config file
> for every combinations.
>
Simply I found useful for me and thought others can be useful too, if you think not useful, that is OK,
and yes probably we shouldn't have a sample for every combination and this patch is not suggesting that.
> Defaulting defconfig files to the native machine natural to me.
>
No issue on having native machine type, just another defconfig with another machine type.
> > Also not scope of this patch but I agree on Bruce's comment on renaming "default" machine type to "generic",
> > I can send a patch for this if there is a demand.
>
> default is an Intel core 2. Why generic is a better name?
When you have "x86_64-default-linuxapp-icc", this feels like this is default configuration for given architecture among others, which will give best performance (what native suggests)
If I would know nothing about DPDK and see available configs first time, I would pick this one, because this is default one J.
"generic" stress more that this config supports generic features of different machine types.
But this is how I feel, as I said I would prefer "generic", but I can survive with existing one.
Thanks,
ferruh
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [dpdk-dev] [PATCH] config: add default linux configuration
2016-02-16 12:08 ` Ferruh Yigit
@ 2016-02-17 10:42 ` Iremonger, Bernard
0 siblings, 0 replies; 10+ messages in thread
From: Iremonger, Bernard @ 2016-02-17 10:42 UTC (permalink / raw)
To: Yigit, Ferruh, Thomas Monjalon; +Cc: dev
Hi Thomas,
> -----Original Message-----
> From: Yigit, Ferruh
> Sent: Tuesday, February 16, 2016 12:09 PM
> To: Thomas Monjalon <thomas.monjalon@6wind.com>
> Cc: dev@dpdk.org; Iremonger, Bernard <bernard.iremonger@intel.com>
> Subject: Re: [dpdk-dev] [PATCH] config: add default linux configuration
>
> On Tue, Feb 16, 2016 at 12:23:12PM +0100, Thomas Monjalon wrote:
> > 2016-02-16 11:16, Ferruh Yigit:
> > > On Thu, Jan 28, 2016 at 02:31:45PM +0000, Bernard Iremonger wrote:
> > > > add config/defconfig_x86_64-default-linuxapp-gcc file.
> > > >
> > > > Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
> > >
> > > Apart from configuration related discussion, this patch was helpful
> > > for me to notice "default" machine type, and difference between
> > > "native", so I believe it is good to have this as sample config.
> >
> > The justification is strange. We are not going to have a config file
> > for every combinations.
> >
> Simply I found useful for me and thought others can be useful too, if you
> think not useful, that is OK, and yes probably we shouldn't have a sample for
> every combination and this patch is not suggesting that.
>
> > Defaulting defconfig files to the native machine natural to me.
> >
> No issue on having native machine type, just another defconfig with another
> machine type.
The default config is useful when working with VM's, that is why I would like to add it.
I don't think it is necessary to add default configs for all the compilers, one sample should be enough.
>
> > > Also not scope of this patch but I agree on Bruce's comment on
> > > renaming "default" machine type to "generic", I can send a patch for this
> if there is a demand.
> >
> > default is an Intel core 2. Why generic is a better name?
>
> When you have "x86_64-default-linuxapp-icc", this feels like this is default
> configuration for given architecture among others, which will give best
> performance (what native suggests) If I would know nothing about DPDK and
> see available configs first time, I would pick this one, because this is default
> one J.
>
> "generic" stress more that this config supports generic features of different
> machine types.
>
> But this is how I feel, as I said I would prefer "generic", but I can survive with
> existing one.
>
> Thanks,
> Ferruh
Regards,
Bernard.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2016-02-17 10:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-28 14:31 [dpdk-dev] [PATCH] config: add default linux configuration Bernard Iremonger
2016-02-12 12:31 ` Panu Matilainen
2016-02-12 15:04 ` Thomas Monjalon
2016-02-12 16:59 ` Ferruh Yigit
2016-02-12 17:13 ` Thomas Monjalon
2016-02-12 17:23 ` Ferruh Yigit
2016-02-16 11:16 ` Ferruh Yigit
2016-02-16 11:23 ` Thomas Monjalon
2016-02-16 12:08 ` Ferruh Yigit
2016-02-17 10:42 ` Iremonger, Bernard
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).