From patchwork Thu May 23 17:40:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Alnubani X-Patchwork-Id: 53673 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 979AB1B94D; Thu, 23 May 2019 19:40:43 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) by dpdk.org (Postfix) with ESMTP id 857761B94C for ; Thu, 23 May 2019 19:40:41 +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=Pcr/1P1SuqLqflSCo4tlhZOsaxnxrZzuLsNrFt8e17ZJUQG9i3BDUVBF9DLg6++Fgm5KgWIwp4aggv4o4BKihtTmCZLKRuTglwI77dzpfr8tTJhVPjL23/8x+7XZ1Bh0Fxu9qVYEUILP6p8YEbIyVrJdiLs9z+RQx2rD2Eiev8k= Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com (10.168.58.144) by DB6SPR00MB246.eurprd05.prod.outlook.com (10.168.78.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.20; Thu, 23 May 2019 17:40:39 +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 17:40:38 +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: AQHVEXdibiq1vdBsFkaNsdNvnlc5RKZ4+jyA Date: Thu, 23 May 2019 17:40:38 +0000 Message-ID: <20190523174018.2873-1-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: VI1PR02CA0043.eurprd02.prod.outlook.com (2603:10a6:802:14::14) 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: f2b69d72-64d6-4f27-40c7-08d6dfa5c4ae 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:DB6SPR00MB246; x-ms-traffictypediagnostic: DB6SPR00MB246: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(136003)(346002)(199004)(189003)(36756003)(2351001)(4744005)(2616005)(26005)(186003)(6506007)(386003)(14444005)(256004)(316002)(102836004)(6916009)(2906002)(5640700003)(1076003)(6512007)(86362001)(6486002)(66066001)(71190400001)(71200400001)(11346002)(446003)(476003)(486006)(3846002)(68736007)(73956011)(66946007)(6116002)(478600001)(66446008)(64756008)(66556008)(66476007)(5660300002)(54906003)(1730700003)(81156014)(81166006)(8936002)(50226002)(53936002)(7736002)(2501003)(99286004)(76176011)(14454004)(52116002)(6436002)(4326008)(8676002)(305945005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6SPR00MB246; 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: CD6D/3L2/NoRQYcJcET98A2ADMqgnr78FxJCmjlm4UBsXBeXIMNmLBqiGrNa02aNPalcLSDrCAs8Mr7lK24B0kYrwjOEK7s1OG3nCdtJaW+b9hUdg32euUIsejMNPPel9XHTM8yo89sX5SEeN1Sxk/WqQRnjp85oQzlUNhb/D91ZqPKPxJj9Xy1AzA3vOrwL6V0kAw2gvV42mbEuz7dOAXEjVRABtZ+VRvmi+4MxJCx547ysdsXmRx3EeduG4YvHM72SblxpXPQuc5/HQ8ZHjHPFIstwOfh6NE5cI9fYjpKFmTThzYB7QC+Td/9vYjEjPdIpK/HpCWs0QTIlVy5c+bVezumE3Ybx2QwtgBSEOavBy06kMe44NoIrR/buMuISG2GeY2ue2KCR45QWLISBozlQwloSOVPFVOkoCTCvN/Y= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2b69d72-64d6-4f27-40c7-08d6dfa5c4ae X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 17:40:38.7040 (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: DB6SPR00MB246 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 Acked-by: Luca Boccassi --- 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 17:40:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ali Alnubani X-Patchwork-Id: 53674 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 B2D671B953; Thu, 23 May 2019 19:40:45 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) by dpdk.org (Postfix) with ESMTP id CB3165689 for ; Thu, 23 May 2019 19:40:41 +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=7Tj7PSYWmFpytxIMgJHG2thMtCfB04B3vVOB9qzy2u8=; b=lDZGLAUGz5UmKeKi/7sDxy9y77qUKccfjmKy5sjQ4RoXcHAFWFlQC2Id1JlwFXy69JWGOjqS0t4ISGrOU7CeIMcyc6BrBQ1RJshCm5B4IAYr5jNplxG9B9ggJBTO1sow3yLoEHMIXga9IwM0T2DYPGxDsshRLxwdUFtiMog8GNA= Received: from DB6PR0501MB2167.eurprd05.prod.outlook.com (10.168.58.144) by DB6SPR00MB246.eurprd05.prod.outlook.com (10.168.78.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.20; Thu, 23 May 2019 17:40:40 +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 17:40:40 +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: AQHVEY6jHUzrzFhBuk2GnPTivod/iA== Date: Thu, 23 May 2019 17:40:39 +0000 Message-ID: <20190523174018.2873-2-alialnu@mellanox.com> References: <20190523145358.1492-1-alialnu@mellanox.com> <20190523174018.2873-1-alialnu@mellanox.com> In-Reply-To: <20190523174018.2873-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: VI1PR02CA0043.eurprd02.prod.outlook.com (2603:10a6:802:14::14) 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: d874066f-0bcf-4dd0-c2c6-08d6dfa5c562 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:DB6SPR00MB246; x-ms-traffictypediagnostic: DB6SPR00MB246: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(376002)(39860400002)(136003)(346002)(199004)(189003)(36756003)(2351001)(2616005)(26005)(186003)(6506007)(386003)(256004)(316002)(102836004)(6916009)(2906002)(5640700003)(1076003)(6512007)(86362001)(6486002)(66066001)(71190400001)(71200400001)(11346002)(446003)(476003)(486006)(3846002)(68736007)(73956011)(66946007)(6116002)(478600001)(66446008)(64756008)(66556008)(66476007)(5660300002)(54906003)(1730700003)(81156014)(81166006)(8936002)(50226002)(53936002)(7736002)(2501003)(99286004)(76176011)(14454004)(52116002)(6436002)(4326008)(8676002)(305945005)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6SPR00MB246; 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: 6McdEXQ5bk+ukZ3A0I0+M+nurpGlbYVApB+jYD0mpf4dG6OYv8pTrZKq82Ar4gU537hAxbbQrmI/Fcn7r9jywx+mMWjoMAN5CBoyL3Le/9/t2HrFJWYE9RblWOVTabS/vEiqsb9tZ/HaddpW1tvHNn4AbtHG2Lo88QDnBN9FwKq/wpDxpq4nM8pEoF8x/8XmogHwhKiDJ6Rj3juc2bBt3oQ1oi6NGafLkJW2flXUhtADTrsSyUDT9URMgnNRUbAcjVbSH/6LSNF9F9y2MLH4FojYi0FbQZ+vfsHI6biIOQjWUUamRDF3j4V0KkiSyr+927bu4rg6j3u7r/kXCRJuHP1gomSaGnYLfAu8wt4LBG+K3ZqYeEzXlad3ARFpW9iv+Kh24/yoh5GV/NOjfTDwGwA1bAs4qMoCr5Dn9ysggys= MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d874066f-0bcf-4dd0-c2c6-08d6dfa5c562 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 17:40:39.8149 (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: DB6SPR00MB246 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 Acked-by: Luca Boccassi --- 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' +)