From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0051.outbound.protection.outlook.com [104.47.34.51]) by dpdk.org (Postfix) with ESMTP id E236D5592 for ; Mon, 26 Mar 2018 09:54:21 +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=8IScnpGHGrdTf3lsX9ATtbd7MD0A+VAZqYuP9lEuTfs=; b=IflVdcQQGYe6lQSp4XOHvneQDt8vfmhcitdend5pxlbOwL0Ae8ywJGzAare0Hr8qH8p6yF03glr2/AGN6DsSecylUt2hNDjSEM3JBlY+vN+2BLyMfAhS/4VsSUHIfDV2K8vEdKW4oecMoGZyiHS7SXRb3xpItET9FIpJxROtwBU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by BN6PR07MB3457.namprd07.prod.outlook.com (2603:10b6:405:64::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 26 Mar 2018 07:54:14 +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: Mon, 26 Mar 2018 13:23:43 +0530 Message-Id: <20180326075344.2209-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.16.2 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: SG2PR06CA0164.apcprd06.prod.outlook.com (2603:1096:1:1e::18) To BN6PR07MB3457.namprd07.prod.outlook.com (2603:10b6:405:64::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98874fc3-7ca5-4054-8598-08d592eec6d6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 3:rLv0BgVZX9i2J9v7G052N1g8iwl30C92M/4nd3Sb1tnnbkyxE1zeDPGKREVoTuzpvbt+UtTWKjtcbDLi0++xKNwf5m+wz6p9nCjx5GohtTkJi3850QIVs4moyVjkeb2T/q0PhOa1nMPXsyqDlBKhk0s5KYM3UJ1zKcJa0FvycIwx0i0OjPc6Xuznvpeeui9R2i2A58welSrNLDtINScDlsWq4LHE/TlqWpL8t13/ztWTDfVmmhr2QlhwSTEtQJR4; 25:u7k1gD3CWXLveIZV2d0xBU2rxh3IGo5x6+reW0aLH52At1FMlT5rWElMPZM9/LXRI3bUJjn0KDSn5dicSpiZ9kbADLW0VVhs+1cy4duBO9HpAPNcxBBepC4J9av911J5bXHG6+iJoR5Sfkznj+0lASzydg0Zd1rojIisAy3mmM4yDzkgxWgQW9XTv6Yy5u2UoygXfS/KVtYpdN4Q+dg8T9CTMyvzjLWfCr+FPZZZPrAHQLI+8ODW9Ybfa9VTek+g40nhd2qlqG24CxXFtNWWWllyhQYLR1nIQiA/xSBsku10UazV3Vlxtg2npxinvLd9hHpE0w7BAFHNugnOLdhLZA==; 31:TWBVstBhFphaYYduaQzWtvDLp7afYXLhDQJjdu6137G2iE75B4Hh1q7qQgXeYJjA+hX8hfptswkFB3FWnfJvusDQ8AHhXaJwu67aLbrXfayuvaXKO6LdfLn7Zc9xjF+/E+4/TYHlY91OEfDr4LTCXaLC0qxguJHGDBkSqScPAPqIpWXU16HtEK1GGlH5kdhoMsP1l99zU90J8ZceOz+R2WexWF5n8tiWpRpAO1RBO/E= X-MS-TrafficTypeDiagnostic: BN6PR07MB3457: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 20:SsQyMCJLlHOg/O907nfu6LOnm3jY4Ms/raWzaC+2/Ww2wlE11oJUVttPqA/Pr+J3/5weU1s1rVerMA+LUDMfgkA4S5wJ8WABTuhtOmDt6iEPrMA7BREklsJROxsY26oNE/FA8xVPHwPvsn6dqXiZksN/ihsW3cgqYfknQDALnxwtbmTz0KLCoW+vMJ64ifj6DgB2Y7r8CklQ1FeRu8GBOTpR/VejEpbMuBVO51o79bR6n6CWAQIO/pm3TsS2SA9a5WtoNxUCVO9VuRiNjjiHvWAilcDovLugkbZTmUFeq1fktaWoQt4WlbqdvjURIMJ5as9FyBx8qIjcU2zjq2zqlxxnAdDrL6jAdCAgt7Rz006kni+fI0rawaIEJXk1d/Rur8B+1gI6qF66ncycJqczNI1euOKM5i/2PJEciEqIHochqyPw/qr0vBEIUt5hXRKhbmW4a5M3B/9SBgG6wGXcLAuh0mnNplfOR41TYyRF3mIyNgw/8Mk5zXhjPIWfgJwm/eU72R9Micjfv2KqvSxJI1fntrJqbjWwmZvTi2euqv8Delh0tQl/4qZDKfbGNVlwoPVdkqsmca0wZNs6YdLfZUD4RSHEUSF9OJYE+ga9FZI=; 4:pOjAe0CyQS2Vc/1r9Yz8KQDqMPCchF8YMWpPTb/ohf2MXS5GdsmwP+yllc4aevAcsm00KRBougBEH8I8I5oUZzplTFIkopa8yNN9LPMCTwBqvKX0zLR0ivM7OZUAY6/o3hOCWautesQbsuxxXj5bo5oXkYOD6x65eahdsZa9Gk6/d2Jq7kQQwPAFcaawBgCQ6KtkNLIl6jqxQLQv42gtlPz7EsPrRwAqMESoewQEdHcoWR3oz3NZLGLgEJeKFJc5PviePFqEtefKTBt5qk+9ag== 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)(3002001)(10201501046)(3231221)(944501327)(52105095)(93006095)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:BN6PR07MB3457; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3457; X-Forefront-PRVS: 06237E4555 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(39850400004)(376002)(39380400002)(396003)(366004)(189003)(199004)(2906002)(42882007)(1857600001)(5660300001)(11346002)(25786009)(966005)(446003)(72206003)(106356001)(4326008)(48376002)(478600001)(16526019)(1076002)(26005)(50466002)(575784001)(2616005)(5009440100003)(956004)(8656006)(105586002)(97736004)(305945005)(52116002)(6486002)(47776003)(51416003)(66066001)(6666003)(76176011)(50226002)(7736002)(68736007)(53936002)(6306002)(6512007)(59450400001)(6506007)(8676002)(107886003)(8936002)(16586007)(36756003)(386003)(53376002)(81166006)(81156014)(316002)(3846002)(6116002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BN6PR07MB3457; 23:ynM0SCN/vri3f+uKxb5cCch3y5IEnqN1iqpaJsSC+?= =?us-ascii?Q?iPaANOkspzOcQHOch6+iAKzaulXYL8q9YQbBmMG+y7CHlh5uLz6mr7Kdrpw+?= =?us-ascii?Q?VVNvFNJj9K6Vbd5blCj7MYJP1vjjw5nrACbhgSP0AfofR3CQBPK+7T6bTrXY?= =?us-ascii?Q?4lTvHIvyZ1JIM/Syfyz5LpTEsPSFxwwMl9ngZFemtoN/GvK8nRUOj2rsZfzc?= =?us-ascii?Q?RkMd52mlZxOK6dVElMXK3OB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VLbBZR7oI+bjGlVVnRb8FA==; 5:a4mnHlWiFxP6LEybanQ4+6vuMr6HxzxK0+D32rNGrPxvmfWcJuXUEhmWq37r4VMH+hgYdYeqEhNjNzfswxZKET5A4EZhqljS6lqWKoCdhWkIVGztaYgCoTzpP5ZGwc9rveVOasfCKNJ575xP6qG9EP2BqGePB4n2QI6NINIWr6A=; 24:DXT/7WuROeXt5Pqc1dB6TENQg5GSzYYv2ObfqVlM+WadxG+XgId0ZGneGA0Iu/pjPSnKyCT0ATewgm1cXuU4Ogi0ftpL7FLubqjb/lBv46k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 7:chYwnOGG5pvzLUSs3vkyC2/7TeGyU/VNbGrpxsDVageUkfxQsw50yYn48cKjNrc0Epiw3ZXrL/3sBS0S9yfBKPdt4uqMb1tlIDema+DfyV2q+A0RghaWw//JREfqXziSyyKU1lxiRykiPPDSNpxQpFGlM9hYVF4ApBR+vGlzS19pZvT4kqnNcPsITH00Hf70eOU96BrP37qeeELTIUvryuZiFRQ4CqNO9uAgN/y3hcmIIa4IvsCO8n7siZWNEgM3 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2018 07:54:14.1936 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98874fc3-7ca5-4054-8598-08d592eec6d6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3457 Subject: [dpdk-dev] [PATCH v3 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, 26 Mar 2018 07:54:22 -0000 Add driver/common folder and skeleton makefile for adding commonly used functions across mempool, event and net devices. Signed-off-by: Pavan Nikhilesh --- v3 Changes: - Fix common lib naming scheme. v2 Changes: - Removed dependency on bus. Based on discussion on ml http://dpdk.org/ml/archives/dev/2018-March/092822.html http://dpdk.org/ml/archives/dev/2018-March/093271.html 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 ee65c87b0..d279c4892 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 := 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..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..5a0b5bc34 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 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