From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0041.outbound.protection.outlook.com [104.47.40.41]) by dpdk.org (Postfix) with ESMTP id 0BFBF4C70 for ; Mon, 19 Mar 2018 10:28:10 +0100 (CET) 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=GldzZEcRO3DMTVO9Gnx+VT1NgCiArv4yxrXtvBw9S48=; b=TwXh9o9Uw369pbHiJ4l4WJFpPaZOw3fI25TAmi0Wdmsy8h3zxmZxaZage+RrW5cD+TSlMyp/ARpTh0WJFZtipqNFitR/uSp8kYxaNPZ4cqIib5nhadtPtxYa/AEPRrXc+ya4tZnIazzkHig95rWi6mXJs1RlHszw6aX7ssF+HKY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3461.namprd07.prod.outlook.com (2603:10b6:910:75::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 09:28:04 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.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: Mon, 19 Mar 2018 14:57:25 +0530 Message-Id: <20180319092726.10153-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR0101CA0013.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::23) To CY4PR07MB3461.namprd07.prod.outlook.com (2603:10b6:910:75::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 34a8bfca-55f8-4097-da9a-08d58d7bba4f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:CY4PR07MB3461; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 3:IM/dnRcGiL48liZs3MdtQ9qUgG+ZaJKEstcc63/9E8UOgwXfX5LOIU9GkAls95IY4p6EKQyu22LX9SW13m9AVE/31ftH4X5LEvSHFORW/5qbPaVu9UN8kmyWhcA7cSNAHqIKGWxpJ+4Z1IlOTVsX5ngM94h9rJG6GPnwvMMND3i/CfCsLIMnCTfaHFQ9PmIZ6T7TYmE3v8wu+ofm2E7NNT3o2JPeX/BiMAy1m4vmjhDpfIQosOQIJKERKlh3uLvQ; 25:h7bogjY6l+AYIkmlOxTtUPnGFSyBN+5Niom4CthdIJpdwV9uwMBYg7VRaALIIfuZ3/ToHIxVdwm4BgfpBlf07c1UW/82t9y/a24xUhPdK/a8zk4p9bo1hP9pdIvAyPSrhXiCEW9TZphog/pSz7wFJI+8YlewHDVS5Yp42YfL0b20EppporWSpts61XVmy+mkqFsvCVgEmv3lZu+5kIzgcLmQu31gd2ovkd+geYfN5UWJcAA7wM+ntvYpG0ytdVBTkRcD9Hj9EQ2mxSkM89SSpBZXSf0XfP3HLDx94a4tuSKTxgMPB/rfZVAz62sk2QF0DHzzNGqchuhqWB2lJnss8w==; 31:UH4wtD9UbNzzMvt7eHL4GtJPJGddWYzFidaMhDTQrWHbspOwxVsuNQNYukYEir/ukF82aSvA9Mr9QdS+ExJGLMqYt040LFggcipNw3JuOF67MaXLEQhQge86nerTv6Hr64+FqE7V7vVSZxy0YKNOexAOv0qEN1u7BHkXP2HAvUJr5JD9bTAu5Df8Ygv3fInAY73cmAY1Z67dYY3o075Epa3iE4zUApSG8sBPT58cwe8= X-MS-TrafficTypeDiagnostic: CY4PR07MB3461: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 20:MFouqJ5NB44BoqyFMqDggxybvId+dL2Rmf2oVP2vyqXo9UoDKsrdnt5jaMhUXHD5gPLe0EiWbF7jyNhA7X7i0KSZEbuylpoliJigF6cJ/DaFnRk+tgfNmUB7/8zxbPdmnQudZITa0ITdJwcqVAc8vozyDxcwciTk8CrLzjFihooUGdKCTG/SIJdLQMhzs6USxVRgmgKvvMoeeGBqjveUugFM7Mgs/3SKLbaWUy1FTFF5DdUh8JSeX1L81e+AliY72Noc9nJGk8IvSiycB2lz8O3cK615teFgzt5wBRM4u4/Py6b/BevMgp1tpKMNo1FTZFIWOKMFkwdmITmKvYARpAvLQ+pb25bDiIRWzdR/Pj6TG0LYIoXjdk1wF3V/heOV5DnS8je+Pki+nqwSF1eN8FJEd0/bM/uULjx0eJ2/0A+XF7msSxUEQmZBbV6tWHqbKcR4g807ZNQJ9QzPjAjPdaStuEaDJ09QlnhjhW0jQ+GyVshVmK1q4nXMqhSDVo7HkZrfkUjcFvfPqUQYv/vHyqwEEhao9FWiqaVEKSkSKSQ3CM+mah07QtFUlmGCKw4NqjbQ1++iL3G0KIQZ4KqoG35iOInY9SpTz3nfxvpTuOI=; 4:9ZacaxXGnGuet/4VUspD7zEbNgZq//7h/oaSc6JqW1nSXKhklevUqJFxIx3sf8qs0z7nWRrUjnkOmrg6eswn0s4EteHs1C0+YTRZ9r/tl5pvnh9Q4T19MKcIT38sA6OPbqPHmuIekZiW0y+WjNRWT7GgnKrTo8gsVJ8j6HP53vBYAry5rCv+7yRHrplHrC+EA11pn7s6Gl+XqpexRXmalBmjxYSTOO5+s9CtRkKSq29zwomIbYXj6e4aQa2Vdq0pA4kIpMDrdjNtZfXSz2fCoA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501244)(52105095)(3002001)(93006095)(10201501046)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3461; X-Forefront-PRVS: 06167FAD59 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(39850400004)(396003)(39380400002)(346002)(366004)(199004)(189003)(53936002)(6512007)(105586002)(50466002)(6486002)(48376002)(575784001)(106356001)(305945005)(7736002)(5660300001)(2906002)(316002)(5009440100003)(36756003)(51416003)(52116002)(6116002)(3846002)(66066001)(1076002)(59450400001)(68736007)(16586007)(478600001)(72206003)(8656006)(6666003)(97736004)(42882007)(107886003)(25786009)(6506007)(4326008)(47776003)(1857600001)(16526019)(8936002)(26005)(50226002)(81156014)(81166006)(8676002)(386003)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3461; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3461; 23:EfLXG7PYXcQYekpWaR9HiB8nYl2V0UG9ytKiFblAE?= =?us-ascii?Q?8Oav2Wf0RNCMgs7w0d4KW4IvlOhyk7cJLFpyq+5VIDuopQyEOu3DQhZS9KiE?= =?us-ascii?Q?ePQcT4xz1RH8eMf3ExPSjsWvMehgpvr/4EJ4U2e7FA4c0db8Ujvv8Gg7Es3/?= =?us-ascii?Q?ASp2C5BjDPtlXMDcEsD6OmchZtPQ+UAxnnD3RR4U/8XcZ78av4v3t+GjG7cM?= =?us-ascii?Q?EnZ1TMWZBsJJwY5ctZiDIeNmWYlCZ0PGXUempBHF1jokMVvIyjivdPVUH8qw?= =?us-ascii?Q?61UJBU80AcV+aC4q22GdBlm+e33Z9QtZN0oFPOnTcEbXPMpWEGFh+FJkUYis?= =?us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8CRUGFiqfsY8KvvbWBZC3NMod85+PIouiACAPT63phTc1dM7BSzXJb2YDAj3i+gfltdxTU6i+bliIzVrSnuXRg1tZ4aDCwM1LjnrSKIFW46FUlvJ4vqYiE3EjZiADhjhDB8x3piE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2018 09:28:04.9706 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34a8bfca-55f8-4097-da9a-08d58d7bba4f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3461 Subject: [dpdk-dev] [PATCH 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: Mon, 19 Mar 2018 09:28:11 -0000 Add driver/common folder and skeleton makefile for adding commonly used functions across mempool, event and net devices. Signed-off-by: Pavan Nikhilesh --- drivers/Makefile | 14 ++++++++------ drivers/common/Makefile | 7 +++++++ drivers/common/meson.build | 6 ++++++ drivers/meson.build | 9 +++++---- 4 files changed, 26 insertions(+), 10 deletions(-) create mode 100644 drivers/common/Makefile create mode 100644 drivers/common/meson.build diff --git a/drivers/Makefile b/drivers/Makefile index ee65c87b0..bd83ad9f3 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -4,17 +4,19 @@ include $(RTE_SDK)/mk/rte.vars.mk DIRS-y += bus +DIRS-y += common +DEPDIRS-common := bus DIRS-y += mempool -DEPDIRS-mempool := bus +DEPDIRS-mempool := bus common DIRS-y += net -DEPDIRS-net := bus mempool +DEPDIRS-net := bus common mempool DIRS-$(CONFIG_RTE_LIBRTE_BBDEV) += bbdev -DEPDIRS-bbdev := bus mempool +DEPDIRS-bbdev := bus common mempool DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto -DEPDIRS-crypto := bus mempool +DEPDIRS-crypto := bus common mempool DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event -DEPDIRS-event := bus mempool net +DEPDIRS-event := bus common mempool net DIRS-$(CONFIG_RTE_LIBRTE_RAWDEV) += raw -DEPDIRS-raw := bus mempool net event +DEPDIRS-raw := bus common 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..20d4a30ba --- /dev/null +++ b/drivers/common/meson.build @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc + +std_deps = ['bus_pci'] +config_flag_fmt = 'RTE_LIBRTE_@0@_COMMON' +driver_name_fmt = 'rte_@0@_common' diff --git a/drivers/meson.build b/drivers/meson.build index b41a0f18e..9494e5d76 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -3,10 +3,11 @@ # 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. + 'common', # depends on bus. + 'mempool', # depends on bus and common. + 'net', # depends on bus, common and mempool. + 'crypto', # depenss on bus, common and mempool (net in future). + 'event'] # depends on bus, common, mempool and net. foreach class:driver_classes drivers = [] -- 2.16.2