From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03hn0201.outbound.protection.outlook.com [104.47.42.201]) by dpdk.org (Postfix) with ESMTP id 614C71C69E for ; Wed, 4 Apr 2018 16:30:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0Ctg+g72EXwkBLAC5wJTvWKIaUr1MBPEEHMLx98F81c=; b=Avpuk/oXyNmxwVOiephVpTixrhtRZJ3A9CjBKncxI9C/AZik/AleGsN6jkEkN0DeT5/CS5HCIhKMvtElrfZfPDSyhFrO/VyC/70jxPJzzL5ToYfdJWbxKmiNGbi6VPxFma8QPek2ywYV4aNNGf9PZ5slyMmuclTVWoTJfbzWH94= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by BN6PR07MB3458.namprd07.prod.outlook.com (2603:10b6:405:64::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.653.12; Wed, 4 Apr 2018 14:30:43 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, thomas@monjalon.net, anatoly.burakov@intel.com, lironh@marvell.com, bruce.richardson@intel.com, fiona.trahe@intel.com, shreyansh.jain@nxp.com, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 4 Apr 2018 20:00:24 +0530 Message-Id: <20180404143025.17190-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> References: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR2001CA0002.namprd20.prod.outlook.com (2603:10b6:301:15::12) To BN6PR07MB3458.namprd07.prod.outlook.com (2603:10b6:405:64::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e53a0201-68ec-445b-460c-08d59a38a81d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 3:AeWBLcw19csHRIFIueAa4WpKt1miVR75E+xTB6xjYy/zaa+YKnycnBYrCVgpyT9ysaBayjdH9Kdih59PWPdaOd/+8NCwznymfu6uSbHdUQQaj2fCTEMiqmh8Ukx1mIN9/1cFSEu/IWJCdUtTLNAn3fPfOkQq7klWhpdk2gvbACR3lJOGuHckGFk4Wo2iVV+fN1glT+kAxRI8Fjh39rxfI9hbkcxWNj3FUTBxgjuHV5fze9RJ6mOTSFCKKYtmwoYu; 25:Nvwcl39OAgMYGSk5uzA1YtrvYeDcoDfnNakxBtWJvQSh3eBRMDQz6VIx0D+aPgsTfEpddO1CFb3b7238DqlOpLq/Xc74PKEhXWo+hZgcDpJwLbTfJ26kdOKDAR+B1U9fqsWpUhU8Wp0ytID7bUNvQA/mlrqbffWZKuviwXB4Iuc4HhqabDOs539PsAUEw9JRcTjadkrEOFIYzoKDSeKY2R6Og3p30XWaCwu6R8ZY1KdzHg0ul5VaYl5OA6408Vx3XTyMu0vMFqbHSMFizOn18tCLGzQ5OjcU2kcEb0Bj33fCeN/5YCmccfdESu9SJIbIFeAjJBoppvMZxWaVWMHFXg==; 31:xHCwUuB8qjdmnTcgE0nD/DZZLa9/xv8itjE38G89jGl8tVZL+sco7iyi+nbcn+zkVAg2/KHQgv0ofAwjIpHbaMeQRWKBNPhsCGE6sstHCZLPT+48XFNtKLW8pzXBgtSVbWZvUkJteuQnJP0w2LMcNquQkq6PU9uutlV9sk46Oer+gCjp931coEvMWeG5C5PM+FhZ4nuUzAHx/r2zrdDuwxOxZzijbr53BEaZTlKbPHg= X-MS-TrafficTypeDiagnostic: BN6PR07MB3458: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 20:FfyAzzSWC2tox0JqtNyPgcpAf3ChU2bxXmITd5NSIryEF5FvCQW7QO+g0GIXKGO3olHWEeVryvBQXrQknOy53SUy/zUHbdcSUi0SRns5WtHOSNpDPhYcwoXujGyuGxwrVFLbFvxrAcHrUFAygjekp4ZKfRfWfjLjytBob5U7Re/Ot5fJQLeN7zv2XxBxK6ns06SrnTpWf5zUrQ+CCr0vXG7ivo1PUAcRXPkvSK7fdAkEvxM6lxssJYaJhRxyy0ut3HcNpUcVibTNJEm6sc8noogNX9bTyItfMma9MMJSIK/oLD0gQTFf1m94PM4xVYwy+JKdx2lxuUNzCUFlhCotCKsZFCo3WbK0fr0kz3s24109K92zEgYhJaLsX/nuRZG0yySF6Tq24QQnlo7MVkhu6t4+c/3ejeDzYlUZCeQsPJXXhmMzeWNVyvJZyjXI7/RpaPoQm4fnT8z4RB5/Z3LTcX58oM0BikKWxWZclMvb3P+83YXeCui6lVosN8dfAjlp5dMN/0P2b2rVOzTUkozkI3rTUDjT8c1uNkKQhaVuO9XhfOMdsLHBm/zMwCpbwMZdg3gNVbS/7MWVlDH1gUeMvu/7tJfSmL45Tx0n4PEFYas= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(66839620246622); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(2232076)(944501327)(52105095)(3002001)(93006095)(10201501046)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN6PR07MB3458; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 4:RiMUT7LDPtspLyarXeGSXPuAP5nJ01RJuC2Db89B9pHWP75Anqlzdd9WTJikgFBmyn4pI16JOI+ApPwaVbOXFBLZU5yKUVZXPOPWG/uFEQDUh7daglq9tOMQ78UrQeaLVh5qWO264KbS7OYzeNk2LcUHBe9fpWYB5hv42cntX81VjtplfUNHlVaY4tKCnl4ItAe1/kb6bqW3Xd7Uz+B04cepHSDO1G6UmjBtQAEY7KRZj5aA5PuzuqhucLJ+pxKfYDNNncgJ8urYsuE1Z0NaXIejHl0clxIkz3KDLXCCz5nEG5ltT2vNwPMP5dBIjKIcsbfMMJ9dpNI/r46m7Jl5Qge8pTelut7oZZ4OiSRgQ6k= X-Forefront-PRVS: 0632519F33 X-Forefront-Antispam-Report: SFV:SPM; SFS:(10009020)(39860400002)(376002)(346002)(366004)(396003)(39380400002)(189003)(199004)(16526019)(6666003)(1857600001)(106356001)(1076002)(97736004)(26005)(316002)(478600001)(3846002)(6116002)(16586007)(47776003)(66066001)(5660300001)(105586002)(53416004)(5009440100003)(48376002)(50466002)(36756003)(72206003)(305945005)(7736002)(68736007)(4326008)(476003)(575784001)(42882007)(956004)(2616005)(486006)(50226002)(53936002)(2906002)(107886003)(81166006)(81156014)(8656006)(6506007)(386003)(59450400001)(446003)(69596002)(8676002)(11346002)(76176011)(8936002)(51416003)(52116002)(6486002)(25786009)(6512007)(59010400001); DIR:OUT; SFP:1501; SCL:5; SRVR:BN6PR07MB3458; H:ltp-pvn.caveonetworks.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3458; 23:8g1uZjpz8z/8V8lY+JQR/6n1QdvIMQddaZzaI/PpT?= =?us-ascii?Q?OcpVpJVHsvT/8k5PTr+rS0855933t2yZp9nvrTxP8lkM0JLsde44N66HlZ/v?= =?us-ascii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Yyl0qberyJ0rPhOsil4ywhiQPo09nlHJdwlbMThphjn+F3JeyWzvXif67MmRVzTMW/ly1PZGspZDh2+ X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2018 14:30:43.3223 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e53a0201-68ec-445b-460c-08d59a38a81d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3458 Subject: [dpdk-dev] [PATCH v5 1/2] drivers: add common folder 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: , X-List-Received-Date: Wed, 04 Apr 2018 14:30:50 -0000 Add driver/common folder and skeleton makefile for adding commonly used functions across mempool, event and net devices. Signed-off-by: Pavan Nikhilesh Acked-by: Hemant Agrawal Acked-by: Jerin Jacob Acked-by: Santosh Shukla --- v5 Changes: - Move all ssovf related stuff from driver/common to driver/event.(jerin) - Update shared library details in release notes (Thomas). v4 Changes: - modified dependency order i.e common before bus. - updated MAINTAINERS file. - moved linking common lib in rte.app.mk above bus. v3 Changes: - Fix common lib naming scheme. v2 Changes: - Removed dependency on bus. drivers/Makefile | 13 +++++++------ drivers/common/Makefile | 7 +++++++ drivers/common/meson.build | 6 ++++++ drivers/meson.build | 11 ++++++----- 4 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 drivers/common/Makefile create mode 100644 drivers/common/meson.build diff --git a/drivers/Makefile b/drivers/Makefile index a1fa8b917..3d9f86b00 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -3,18 +3,19 @@ include $(RTE_SDK)/mk/rte.vars.mk +DIRS-y += common DIRS-y += bus DIRS-y += mempool -DEPDIRS-mempool := bus +DEPDIRS-mempool := common bus DIRS-y += net -DEPDIRS-net := bus mempool +DEPDIRS-net := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += baseband -DEPDIRS-baseband := bus mempool +DEPDIRS-baseband := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto -DEPDIRS-crypto := bus mempool +DEPDIRS-crypto := common bus mempool DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event -DEPDIRS-event := bus mempool net +DEPDIRS-event := common bus mempool net DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += raw -DEPDIRS-raw := bus mempool net event +DEPDIRS-raw := common bus mempool net event include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/common/Makefile b/drivers/common/Makefile new file mode 100644 index 000000000..192066307 --- /dev/null +++ b/drivers/common/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc +# + +include $(RTE_SDK)/mk/rte.vars.mk + +include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/common/meson.build b/drivers/common/meson.build new file mode 100644 index 000000000..ab774b8ef --- /dev/null +++ b/drivers/common/meson.build @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc + +std_deps = ['eal'] +config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON' +driver_name_fmt = 'rte_common_@0@' diff --git a/drivers/meson.build b/drivers/meson.build index b41a0f18e..b146f09c5 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -2,11 +2,12 @@ # Copyright(c) 2017 Intel Corporation # Defines the order in which the drivers are buit. -driver_classes = ['bus', - 'mempool', # depends on bus. - 'net', # depends on bus and mempool. - 'crypto', # depenss on bus, mempool (net in future). - 'event'] # depends on bus, mempool and net. +driver_classes = ['common', + 'bus', + 'mempool', # depends on common and bus. + 'net', # depends on common, bus and mempool. + 'crypto', # depends on common, bus and mempool (net in future). + 'event'] # depends on common, bus, mempool and net. foreach class:driver_classes drivers = [] -- 2.16.2