DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name
@ 2019-05-23 14:54 Ali Alnubani
  2019-05-23 14:54 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
  2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
  0 siblings, 2 replies; 9+ messages in thread
From: Ali Alnubani @ 2019-05-23 14:54 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, bluca

This would allow correctly naming an application residing
in a subdirectory. For example, if the example is set to 'path/to/app',
then the name would be 'app'.
This doesn't affect the naming of an example that isn't in a subdirectory.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
 examples/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/meson.build b/examples/meson.build
index de35656d4..53a786eb4 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -64,7 +64,7 @@ endif
 default_cflags += '-D_GNU_SOURCE'
 
 foreach example: examples
-	name = example
+	name = example.split('/')[-1]
 	build = true
 	sources = []
 	allow_experimental_apis = false
-- 
2.19.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 14:54 [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
@ 2019-05-23 14:54 ` Ali Alnubani
  2019-05-23 15:32   ` Bruce Richardson
  2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
  1 sibling, 1 reply; 9+ messages in thread
From: Ali Alnubani @ 2019-05-23 14:54 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, bluca

This enables building the example multiprocess applications in
the subdirectory multi_process.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
 examples/meson.build                               |  8 +++++++-
 .../client_server_mp/mp_client/meson.build         | 14 ++++++++++++++
 .../client_server_mp/mp_server/meson.build         | 14 ++++++++++++++
 examples/multi_process/hotplug_mp/meson.build      | 12 ++++++++++++
 examples/multi_process/simple_mp/meson.build       | 12 ++++++++++++
 .../multi_process/{ => symmetric_mp}/meson.build   |  8 +++++---
 6 files changed, 64 insertions(+), 4 deletions(-)
 create mode 100644 examples/multi_process/client_server_mp/mp_client/meson.build
 create mode 100644 examples/multi_process/client_server_mp/mp_server/meson.build
 create mode 100644 examples/multi_process/hotplug_mp/meson.build
 create mode 100644 examples/multi_process/simple_mp/meson.build
 rename examples/multi_process/{ => symmetric_mp}/meson.build (68%)

diff --git a/examples/meson.build b/examples/meson.build
index 53a786eb4..647114c23 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -24,7 +24,7 @@ all_examples = [
 	'l2fwd-keepalive', 'l3fwd',
 	'l3fwd-acl', 'l3fwd-power',
 	'l3fwd-vf', 'link_status_interrupt',
-	'load_balancer', 'multi_process',
+	'load_balancer',
 	'netmap_compat', 'packet_ordering',
 	'performance-thread', 'ptpclient',
 	'qos_meter', 'qos_sched',
@@ -35,6 +35,12 @@ all_examples = [
 	'vhost', 'vhost_crypto',
 	'vhost_scsi', 'vm_power_manager',
 	'vmdq', 'vmdq_dcb',
+	'multi_process/simple_mp',
+	'multi_process/hotplug_mp',
+	'multi_process/symmetric_mp',
+	'multi_process/client_server_mp/mp_server',
+	'multi_process/client_server_mp/mp_client',
+
 ]
 # install all example code on install - irrespective of whether the example in
 # question is to be built as part of this build or not.
diff --git a/examples/multi_process/client_server_mp/mp_client/meson.build b/examples/multi_process/client_server_mp/mp_client/meson.build
new file mode 100644
index 000000000..196c39fc5
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_client/meson.build
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+includes += include_directories('../shared')
+
+name = 'mp_client'
+sources = files(
+	'client.c'
+)
diff --git a/examples/multi_process/client_server_mp/mp_server/meson.build b/examples/multi_process/client_server_mp/mp_server/meson.build
new file mode 100644
index 000000000..3f1cf49fb
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_server/meson.build
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+includes += include_directories('../shared')
+
+name = 'mp_server'
+sources = files(
+	'args.c', 'init.c', 'main.c'
+)
diff --git a/examples/multi_process/hotplug_mp/meson.build b/examples/multi_process/hotplug_mp/meson.build
new file mode 100644
index 000000000..21513f974
--- /dev/null
+++ b/examples/multi_process/hotplug_mp/meson.build
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+name = 'hotplug_mp'
+sources = files(
+	'commands.c', 'main.c'
+)
diff --git a/examples/multi_process/simple_mp/meson.build b/examples/multi_process/simple_mp/meson.build
new file mode 100644
index 000000000..8120db5c2
--- /dev/null
+++ b/examples/multi_process/simple_mp/meson.build
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+name = 'simple_mp'
+sources = files(
+	'mp_commands.c', 'main.c'
+)
diff --git a/examples/multi_process/meson.build b/examples/multi_process/symmetric_mp/meson.build
similarity index 68%
rename from examples/multi_process/meson.build
rename to examples/multi_process/symmetric_mp/meson.build
index c370d7476..19cf2f2ce 100644
--- a/examples/multi_process/meson.build
+++ b/examples/multi_process/symmetric_mp/meson.build
@@ -1,10 +1,12 @@
 # SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2018 Intel Corporation
+# Copyright 2019 Mellanox Technologies, Ltd
 
 # meson file, for building this example as part of a main DPDK build.
 #
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-# Example app currently unsupported by meson build
-build = false
+name = 'symmetric_mp'
+sources = files(
+	'main.c'
+)
-- 
2.19.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 14:54 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
@ 2019-05-23 15:32   ` Bruce Richardson
  2019-05-23 17:54     ` Ali Alnubani
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Richardson @ 2019-05-23 15:32 UTC (permalink / raw)
  To: Ali Alnubani; +Cc: dev, bluca

On Thu, May 23, 2019 at 02:54:13PM +0000, Ali Alnubani wrote:
> This enables building the example multiprocess applications in
> the subdirectory multi_process.
> 
> Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> ---
>  examples/meson.build                               |  8 +++++++-
>  .../client_server_mp/mp_client/meson.build         | 14 ++++++++++++++
>  .../client_server_mp/mp_server/meson.build         | 14 ++++++++++++++
>  examples/multi_process/hotplug_mp/meson.build      | 12 ++++++++++++
>  examples/multi_process/simple_mp/meson.build       | 12 ++++++++++++
>  .../multi_process/{ => symmetric_mp}/meson.build   |  8 +++++---
>  6 files changed, 64 insertions(+), 4 deletions(-)
>  create mode 100644 examples/multi_process/client_server_mp/mp_client/meson.build
>  create mode 100644 examples/multi_process/client_server_mp/mp_server/meson.build
>  create mode 100644 examples/multi_process/hotplug_mp/meson.build
>  create mode 100644 examples/multi_process/simple_mp/meson.build
>  rename examples/multi_process/{ => symmetric_mp}/meson.build (68%)
> 
> diff --git a/examples/meson.build b/examples/meson.build
> index 53a786eb4..647114c23 100644
> --- a/examples/meson.build
> +++ b/examples/meson.build
> @@ -24,7 +24,7 @@ all_examples = [
>  	'l2fwd-keepalive', 'l3fwd',
>  	'l3fwd-acl', 'l3fwd-power',
>  	'l3fwd-vf', 'link_status_interrupt',
> -	'load_balancer', 'multi_process',
> +	'load_balancer',
>  	'netmap_compat', 'packet_ordering',
>  	'performance-thread', 'ptpclient',
>  	'qos_meter', 'qos_sched',
> @@ -35,6 +35,12 @@ all_examples = [
>  	'vhost', 'vhost_crypto',
>  	'vhost_scsi', 'vm_power_manager',
>  	'vmdq', 'vmdq_dcb',
> +	'multi_process/simple_mp',
> +	'multi_process/hotplug_mp',
> +	'multi_process/symmetric_mp',
> +	'multi_process/client_server_mp/mp_server',
> +	'multi_process/client_server_mp/mp_client',
> +
>  ]

Since these are in alphabetical order, I think we should keep the
multi-process apps in the list in the correct order, rather than at the end.

>  # install all example code on install - irrespective of whether the example in
>  # question is to be built as part of this build or not.
> diff --git a/examples/multi_process/client_server_mp/mp_client/meson.build b/examples/multi_process/client_server_mp/mp_client/meson.build
> new file mode 100644
> index 000000000..196c39fc5
> --- /dev/null
> +++ b/examples/multi_process/client_server_mp/mp_client/meson.build
> @@ -0,0 +1,14 @@
> +# SPDX-License-Identifier: BSD-3-Clause
> +# Copyright 2019 Mellanox Technologies, Ltd
> +
> +# meson file, for building this example as part of a main DPDK build.
> +#
> +# To build this example as a standalone application with an already-installed
> +# DPDK instance, use 'make'
> +
> +includes += include_directories('../shared')
> +
> +name = 'mp_client'

I believe your previous patch in this set already set up the names
correctly for these apps, so I think you should remove this and the other
name assignment lines in the other files. I'd like to try and enforce
consistency in naming, and not having overrides of the name value in the
individual app meson.build files is key to enforcing that consistency.

Otherwise, thanks for doing this, and the rest of the patch looks fine to
me.

/Bruce

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name
  2019-05-23 14:54 [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
  2019-05-23 14:54 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
@ 2019-05-23 17:40 ` Ali Alnubani
  2019-05-23 17:40   ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
  2019-05-23 18:42   ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Luca Boccassi
  1 sibling, 2 replies; 9+ messages in thread
From: Ali Alnubani @ 2019-05-23 17:40 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, bluca

This would allow correctly naming an application residing
in a subdirectory. For example, if the example is set to 'path/to/app',
then the name would be 'app'.
This doesn't affect the naming of an example that isn't in a subdirectory.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
 examples/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/meson.build b/examples/meson.build
index de35656d4..53a786eb4 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -64,7 +64,7 @@ endif
 default_cflags += '-D_GNU_SOURCE'
 
 foreach example: examples
-	name = example
+	name = example.split('/')[-1]
 	build = true
 	sources = []
 	allow_experimental_apis = false
-- 
2.19.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
@ 2019-05-23 17:40   ` Ali Alnubani
  2019-05-23 18:42     ` Luca Boccassi
  2019-05-23 18:42   ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Luca Boccassi
  1 sibling, 1 reply; 9+ messages in thread
From: Ali Alnubani @ 2019-05-23 17:40 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, bluca

This enables building the example multiprocess applications in
the subdirectory multi_process.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
Changes in v2:
  - Removed unnecessary name assignment.
  - Reordered all_examples list.

 examples/meson.build                                |  7 ++++++-
 .../client_server_mp/mp_client/meson.build          | 13 +++++++++++++
 .../client_server_mp/mp_server/meson.build          | 13 +++++++++++++
 examples/multi_process/{ => hotplug_mp}/meson.build |  7 ++++---
 examples/multi_process/simple_mp/meson.build        | 11 +++++++++++
 examples/multi_process/symmetric_mp/meson.build     | 11 +++++++++++
 6 files changed, 58 insertions(+), 4 deletions(-)
 create mode 100644 examples/multi_process/client_server_mp/mp_client/meson.build
 create mode 100644 examples/multi_process/client_server_mp/mp_server/meson.build
 rename examples/multi_process/{ => hotplug_mp}/meson.build (68%)
 create mode 100644 examples/multi_process/simple_mp/meson.build
 create mode 100644 examples/multi_process/symmetric_mp/meson.build

diff --git a/examples/meson.build b/examples/meson.build
index 53a786eb4..c695d52c9 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -24,7 +24,12 @@ all_examples = [
 	'l2fwd-keepalive', 'l3fwd',
 	'l3fwd-acl', 'l3fwd-power',
 	'l3fwd-vf', 'link_status_interrupt',
-	'load_balancer', 'multi_process',
+	'load_balancer',
+	'multi_process/client_server_mp/mp_client',
+	'multi_process/client_server_mp/mp_server',
+	'multi_process/hotplug_mp',
+	'multi_process/simple_mp',
+	'multi_process/symmetric_mp',
 	'netmap_compat', 'packet_ordering',
 	'performance-thread', 'ptpclient',
 	'qos_meter', 'qos_sched',
diff --git a/examples/multi_process/client_server_mp/mp_client/meson.build b/examples/multi_process/client_server_mp/mp_client/meson.build
new file mode 100644
index 000000000..a6241b83a
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_client/meson.build
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+includes += include_directories('../shared')
+
+sources = files(
+	'client.c'
+)
diff --git a/examples/multi_process/client_server_mp/mp_server/meson.build b/examples/multi_process/client_server_mp/mp_server/meson.build
new file mode 100644
index 000000000..1b2f78638
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_server/meson.build
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+includes += include_directories('../shared')
+
+sources = files(
+	'args.c', 'init.c', 'main.c'
+)
diff --git a/examples/multi_process/meson.build b/examples/multi_process/hotplug_mp/meson.build
similarity index 68%
rename from examples/multi_process/meson.build
rename to examples/multi_process/hotplug_mp/meson.build
index c370d7476..076f4e3dc 100644
--- a/examples/multi_process/meson.build
+++ b/examples/multi_process/hotplug_mp/meson.build
@@ -1,10 +1,11 @@
 # SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2018 Intel Corporation
+# Copyright 2019 Mellanox Technologies, Ltd
 
 # meson file, for building this example as part of a main DPDK build.
 #
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-# Example app currently unsupported by meson build
-build = false
+sources = files(
+	'commands.c', 'main.c'
+)
diff --git a/examples/multi_process/simple_mp/meson.build b/examples/multi_process/simple_mp/meson.build
new file mode 100644
index 000000000..b2261e00e
--- /dev/null
+++ b/examples/multi_process/simple_mp/meson.build
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+sources = files(
+	'mp_commands.c', 'main.c'
+)
diff --git a/examples/multi_process/symmetric_mp/meson.build b/examples/multi_process/symmetric_mp/meson.build
new file mode 100644
index 000000000..458f83642
--- /dev/null
+++ b/examples/multi_process/symmetric_mp/meson.build
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+sources = files(
+	'main.c'
+)
-- 
2.19.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 15:32   ` Bruce Richardson
@ 2019-05-23 17:54     ` Ali Alnubani
  0 siblings, 0 replies; 9+ messages in thread
From: Ali Alnubani @ 2019-05-23 17:54 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, bluca

Hi Bruce,
Comments are inline.

> -----Original Message-----
> From: Bruce Richardson <bruce.richardson@intel.com>
> Sent: Thursday, May 23, 2019 6:33 PM
> To: Ali Alnubani <alialnu@mellanox.com>
> Cc: dev@dpdk.org; bluca@debian.org
> Subject: Re: [PATCH 2/2] examples: enable building multiprocess applications
> 
> On Thu, May 23, 2019 at 02:54:13PM +0000, Ali Alnubani wrote:
> > This enables building the example multiprocess applications in the
> > subdirectory multi_process.
> >
> > Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> > ---
> >  examples/meson.build                               |  8 +++++++-
> >  .../client_server_mp/mp_client/meson.build         | 14 ++++++++++++++
> >  .../client_server_mp/mp_server/meson.build         | 14 ++++++++++++++
> >  examples/multi_process/hotplug_mp/meson.build      | 12 ++++++++++++
> >  examples/multi_process/simple_mp/meson.build       | 12 ++++++++++++
> >  .../multi_process/{ => symmetric_mp}/meson.build   |  8 +++++---
> >  6 files changed, 64 insertions(+), 4 deletions(-)  create mode 100644
> > examples/multi_process/client_server_mp/mp_client/meson.build
> >  create mode 100644
> > examples/multi_process/client_server_mp/mp_server/meson.build
> >  create mode 100644 examples/multi_process/hotplug_mp/meson.build
> >  create mode 100644 examples/multi_process/simple_mp/meson.build
> >  rename examples/multi_process/{ => symmetric_mp}/meson.build (68%)
> >
> > diff --git a/examples/meson.build b/examples/meson.build index
> > 53a786eb4..647114c23 100644
> > --- a/examples/meson.build
> > +++ b/examples/meson.build
> > @@ -24,7 +24,7 @@ all_examples = [
> >  	'l2fwd-keepalive', 'l3fwd',
> >  	'l3fwd-acl', 'l3fwd-power',
> >  	'l3fwd-vf', 'link_status_interrupt',
> > -	'load_balancer', 'multi_process',
> > +	'load_balancer',
> >  	'netmap_compat', 'packet_ordering',
> >  	'performance-thread', 'ptpclient',
> >  	'qos_meter', 'qos_sched',
> > @@ -35,6 +35,12 @@ all_examples = [
> >  	'vhost', 'vhost_crypto',
> >  	'vhost_scsi', 'vm_power_manager',
> >  	'vmdq', 'vmdq_dcb',
> > +	'multi_process/simple_mp',
> > +	'multi_process/hotplug_mp',
> > +	'multi_process/symmetric_mp',
> > +	'multi_process/client_server_mp/mp_server',
> > +	'multi_process/client_server_mp/mp_client',
> > +
> >  ]
> 
> Since these are in alphabetical order, I think we should keep the multi-
> process apps in the list in the correct order, rather than at the end.
Corrected in v2.
> 
> >  # install all example code on install - irrespective of whether the
> > example in  # question is to be built as part of this build or not.
> > diff --git
> > a/examples/multi_process/client_server_mp/mp_client/meson.build
> > b/examples/multi_process/client_server_mp/mp_client/meson.build
> > new file mode 100644
> > index 000000000..196c39fc5
> > --- /dev/null
> > +++ b/examples/multi_process/client_server_mp/mp_client/meson.build
> > @@ -0,0 +1,14 @@
> > +# SPDX-License-Identifier: BSD-3-Clause # Copyright 2019 Mellanox
> > +Technologies, Ltd
> > +
> > +# meson file, for building this example as part of a main DPDK build.
> > +#
> > +# To build this example as a standalone application with an
> > +already-installed # DPDK instance, use 'make'
> > +
> > +includes += include_directories('../shared')
> > +
> > +name = 'mp_client'
> 
> I believe your previous patch in this set already set up the names correctly
> for these apps, so I think you should remove this and the other name
> assignment lines in the other files. I'd like to try and enforce consistency in
> naming, and not having overrides of the name value in the individual app
> meson.build files is key to enforcing that consistency.
I left those assignments from a previous version of the patchset, my bad.
Also corrected in v2.
> 
> Otherwise, thanks for doing this, and the rest of the patch looks fine to me.
> 
> /Bruce

I sent a v2, but realized I forgot to tag it. Sorry.
http://patches.dpdk.org/project/dpdk/list/?series=4761

Thanks,
Ali

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name
  2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
  2019-05-23 17:40   ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
@ 2019-05-23 18:42   ` Luca Boccassi
  1 sibling, 0 replies; 9+ messages in thread
From: Luca Boccassi @ 2019-05-23 18:42 UTC (permalink / raw)
  To: Ali Alnubani, dev

On Thu, 2019-05-23 at 17:40 +0000, Ali Alnubani wrote:
> This would allow correctly naming an application residing
> in a subdirectory. For example, if the example is set to
> 'path/to/app',
> then the name would be 'app'.
> This doesn't affect the naming of an example that isn't in a
> subdirectory.
> 
> Signed-off-by: Ali Alnubani <
> alialnu@mellanox.com
> >
> ---
>  examples/meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/examples/meson.build b/examples/meson.build
> index de35656d4..53a786eb4 100644
> --- a/examples/meson.build
> +++ b/examples/meson.build
> @@ -64,7 +64,7 @@ endif
>  default_cflags += '-D_GNU_SOURCE'
>  
>  foreach example: examples
> -	name = example
> +	name = example.split('/')[-1]
>  	build = true
>  	sources = []
>  	allow_experimental_apis = false
> -- 
> 2.19.2

Acked-by: Luca Boccassi <bluca@debian.org>

-- 
Kind regards,
Luca Boccassi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 17:40   ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
@ 2019-05-23 18:42     ` Luca Boccassi
  2019-06-04 10:36       ` Thomas Monjalon
  0 siblings, 1 reply; 9+ messages in thread
From: Luca Boccassi @ 2019-05-23 18:42 UTC (permalink / raw)
  To: Ali Alnubani, dev

On Thu, 2019-05-23 at 17:40 +0000, Ali Alnubani wrote:
> This enables building the example multiprocess applications in
> the subdirectory multi_process.
> 
> Signed-off-by: Ali Alnubani <
> alialnu@mellanox.com
> >
> ---
> Changes in v2:
>   - Removed unnecessary name assignment.
>   - Reordered all_examples list.
> 
>  examples/meson.build                                |  7 ++++++-
>  .../client_server_mp/mp_client/meson.build          | 13
> +++++++++++++
>  .../client_server_mp/mp_server/meson.build          | 13
> +++++++++++++
>  examples/multi_process/{ => hotplug_mp}/meson.build |  7 ++++---
>  examples/multi_process/simple_mp/meson.build        | 11 +++++++++++
>  examples/multi_process/symmetric_mp/meson.build     | 11 +++++++++++
>  6 files changed, 58 insertions(+), 4 deletions(-)
>  create mode 100644
> examples/multi_process/client_server_mp/mp_client/meson.build
>  create mode 100644
> examples/multi_process/client_server_mp/mp_server/meson.build
>  rename examples/multi_process/{ => hotplug_mp}/meson.build (68%)
>  create mode 100644 examples/multi_process/simple_mp/meson.build
>  create mode 100644 examples/multi_process/symmetric_mp/meson.build

Acked-by: Luca Boccassi <bluca@debian.org>

-- 
Kind regards,
Luca Boccassi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
  2019-05-23 18:42     ` Luca Boccassi
@ 2019-06-04 10:36       ` Thomas Monjalon
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Monjalon @ 2019-06-04 10:36 UTC (permalink / raw)
  To: Ali Alnubani; +Cc: dev, Luca Boccassi

23/05/2019 20:42, Luca Boccassi:
> On Thu, 2019-05-23 at 17:40 +0000, Ali Alnubani wrote:
> > This enables building the example multiprocess applications in
> > the subdirectory multi_process.
> > 
> > Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
> 
> Acked-by: Luca Boccassi <bluca@debian.org>

Applied, thanks




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-06-04 10:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 14:54 [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
2019-05-23 14:54 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
2019-05-23 15:32   ` Bruce Richardson
2019-05-23 17:54     ` Ali Alnubani
2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
2019-05-23 17:40   ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
2019-05-23 18:42     ` Luca Boccassi
2019-06-04 10:36       ` Thomas Monjalon
2019-05-23 18:42   ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Luca Boccassi

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).