From patchwork Thu May 23 14:54:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Alnubani X-Patchwork-Id: 53671 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0D9001B945; Thu, 23 May 2019 16:54:17 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00081.outbound.protection.outlook.com [40.107.0.81]) by dpdk.org (Postfix) with ESMTP id 30BCC5689 for ; Thu, 23 May 2019 16:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4pYowcCHcp+N+cixi3Q/fGrt08rhFKPFNayyNewn6CA=; b=QAw5r4AALhripYw8LCUVoPn/xwCvI0AI14c/gS4XP4QZ6HURffMpElqe6Aap5sRdcYuimjg5jGoYf6+cnKwiXuqx7caAf6f2wZmUzAfn9SiwxFFM9cMXdOm1n2YLhQAoIiQd7zKtj/JPBmFXNcvhX+qaepzAIX/ZtXPaqYzIPAY= Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com (10.168.58.144) by DB6PR0501MB2856.eurprd05.prod.outlook.com (10.172.225.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Thu, 23 May 2019 14:54:12 +0000 Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b]) by DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b%4]) with mapi id 15.20.1922.013; Thu, 23 May 2019 14:54:12 +0000 From: Ali Alnubani To: "dev@dpdk.org" CC: "bruce.richardson@intel.com" , "bluca@debian.org" Thread-Topic: [PATCH 1/2] examples: strip directory and use suffix as name Thread-Index: AQHVEXdibiq1vdBsFkaNsdNvnlc5RA== Date: Thu, 23 May 2019 14:54:12 +0000 Message-ID: <20190523145358.1492-1-alialnu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.19.2 x-clientproxiedby: VI1P195CA0016.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:d0::26) To DB6PR0501MB2167.eurprd05.prod.outlook.com (2603:10a6:4:51::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=alialnu@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c3e11908-4546-4588-e188-08d6df8e8442 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:DB6PR0501MB2856; x-ms-traffictypediagnostic: DB6PR0501MB2856: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(39860400002)(396003)(136003)(199004)(189003)(305945005)(66946007)(73956011)(5660300002)(1076003)(486006)(7736002)(66476007)(6436002)(66556008)(66446008)(64756008)(54906003)(71200400001)(71190400001)(2616005)(102836004)(86362001)(6916009)(6512007)(386003)(6506007)(5640700003)(4744005)(2501003)(476003)(3846002)(81166006)(8936002)(2351001)(36756003)(4326008)(8676002)(6116002)(478600001)(25786009)(316002)(99286004)(186003)(66066001)(14444005)(50226002)(68736007)(256004)(81156014)(53936002)(2906002)(14454004)(6486002)(52116002)(1730700003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2856; H:DB6PR0501MB2167.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hCjDGOSYXhx7JTm5PFOtEmaN6ULEHUM/uExsw7b1ZSz3gBzLPAQY5lPh+UCZ8SJKmdkh/joEE+woPYYkqsDSaJjvaiQUnfRm+Xu91rFfFvbB4aVq7EDOdwJR9I182r2ftPWPrX1eQi4w0H0gfuEJY7Gd9fhfi18Q/ny2ZqGDKXzUAznrkSz+0zA3wFhqIykd9+zR1E8v1okc8534jLCdrvRzVX1l59WHYNgbWAZcOQG9uIR8O+44xW5h8lr4oGoho2NfkO4dj5GQt++1oGt3nxTby3DLwQP44AUeFBqLzVerfaA7Es7b7XjT4nyeONls0lrop6zGgLIZZz0CoB5/X7Ot0iioRSPZJX1pVseJQg8rNTnE2W+6CJ/i4RfKbuFtMtKr4BIYgU87Hyc4hRhCIV9xcmOswjafj/+MGAwBFJw= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3e11908-4546-4588-e188-08d6df8e8442 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 14:54:12.1883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2856 Subject: [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name 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" 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 --- 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 From patchwork Thu May 23 14:54:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Alnubani X-Patchwork-Id: 53672 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A2751B94E; Thu, 23 May 2019 16:54:19 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00081.outbound.protection.outlook.com [40.107.0.81]) by dpdk.org (Postfix) with ESMTP id 4C98D1B945 for ; Thu, 23 May 2019 16:54:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Urjv0pfNpnHc8wyFvB6ldopmp21Kz/7L46dYSqaDTwc=; b=KPr0v7xUm3LOnUTmaEbDJcTdbuYbY0cwbWM3tgTtL8iLro7uyl+7z2xYnhzZWCQrJ1aTxnoBVluqv1wSLbZtpZBg/NQoisIZVqhlq6SlKI19f4DrzgdNsygVLAgvIxF1m9TxNmJdsTCiY/Xt51kFWPzAS2tvKTCmdokEZhA/c8Q= Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com (10.168.58.144) by DB6PR0501MB2856.eurprd05.prod.outlook.com (10.172.225.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.18; Thu, 23 May 2019 14:54:13 +0000 Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b]) by DB6PR0501MB2167.eurprd05.prod.outlook.com ([fe80::d1d3:3729:f74d:2f7b%4]) with mapi id 15.20.1922.013; Thu, 23 May 2019 14:54:13 +0000 From: Ali Alnubani To: "dev@dpdk.org" CC: "bruce.richardson@intel.com" , "bluca@debian.org" Thread-Topic: [PATCH 2/2] examples: enable building multiprocess applications Thread-Index: AQHVEXdichc16B2s4UWudh/McCZi7w== Date: Thu, 23 May 2019 14:54:13 +0000 Message-ID: <20190523145358.1492-2-alialnu@mellanox.com> References: <20190523145358.1492-1-alialnu@mellanox.com> In-Reply-To: <20190523145358.1492-1-alialnu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.19.2 x-clientproxiedby: VI1P195CA0016.EURP195.PROD.OUTLOOK.COM (2603:10a6:800:d0::26) To DB6PR0501MB2167.eurprd05.prod.outlook.com (2603:10a6:4:51::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=alialnu@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5919fe1b-1d06-4ca4-3a0c-08d6df8e84f7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:DB6PR0501MB2856; x-ms-traffictypediagnostic: DB6PR0501MB2856: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(39860400002)(396003)(136003)(199004)(189003)(305945005)(66946007)(73956011)(5660300002)(1076003)(486006)(7736002)(66476007)(6436002)(66556008)(66446008)(64756008)(54906003)(71200400001)(71190400001)(2616005)(102836004)(86362001)(6916009)(6512007)(386003)(6506007)(5640700003)(446003)(2501003)(11346002)(476003)(3846002)(81166006)(76176011)(8936002)(2351001)(36756003)(4326008)(8676002)(6116002)(478600001)(25786009)(316002)(99286004)(186003)(66066001)(50226002)(68736007)(256004)(81156014)(53936002)(2906002)(14454004)(6486002)(52116002)(1730700003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2856; H:DB6PR0501MB2167.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BfO74LR90EUl3uu8GkIiKysomhpgXTK6GD/H6wo04Dz0wlkQ3V2Cv3yeXQkm21BoSMxqOxQXuU1t2nZ7aG0qZXD2NlgasZgz+ZvItuR/4Rg2XUon36XRBdL+0PuByalH3tvMzo8R6UaObAWwJ9sAsjM42Odz8/shpdRmII1kaXVBankoTx77sWcB0UiRQenfPlEOYW7XSXHeULJx6SQuDUCUklM0smAm6ulojO3wecoSh9NBIUldehZB3PHDfRHfA+eyyOorpdtPzSXwVykZ8CYKL5NsK9i5ODU+IqhbEJZ81DoSlPFLQsrOBjUBNzTzEAuxVxGHdmRL2A9EmbR08bZRxQc6J7wmYiLF6CkZz/MBJ5gKUT/SPgtp0HGLEXx5zdeGwy1K5sEhmvyEYaJnUBXqKnLzw+5bkjeXPg+5oJQ= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5919fe1b-1d06-4ca4-3a0c-08d6df8e84f7 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 14:54:13.2871 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2856 Subject: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications 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" This enables building the example multiprocess applications in the subdirectory multi_process. Signed-off-by: Ali Alnubani --- 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' +)