From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0066.outbound.protection.outlook.com [104.47.34.66]) by dpdk.org (Postfix) with ESMTP id 003581B19 for ; Tue, 20 Mar 2018 15:41:28 +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=UL8/h6FfBeQc6RcMSVncuufnicDX51I7RxM53sF7mKg=; b=UJILRrXYlivTNPCErlT6itXX0X6KSnUWiw9h5GLy2RtSA0K4cm2uvT8J3+g3R9Vfdgvhm97E2Abwf1x5uR4x4rhEKjpvp6FDRlbIU7CjtrjfRj3LyeoqOYh+diDN8560rMG1gB8nKDBOwHX1BNpIO2CnQeqbicVkWb4W5dtwj04= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from ltp-pvn.caveonetworks.com (111.93.218.67) by MWHPR07MB3472.namprd07.prod.outlook.com (2603:10b6:301:63::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Tue, 20 Mar 2018 14:41:22 +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: Tue, 20 Mar 2018 20:10:45 +0530 Message-Id: <20180320144046.15382-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: BN6PR1301CA0022.namprd13.prod.outlook.com (2603:10b6:405:29::35) To MWHPR07MB3472.namprd07.prod.outlook.com (2603:10b6:301:63::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 33074d56-59f6-4325-1d73-08d58e70a8c3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603328)(7153060)(7193020); SRVR:MWHPR07MB3472; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 3:e4Pre/NNl+vPUq5Rl8Rf4jX0K4f74dUeAKGm9BKlm7SMTbR+1LUkV+OI8znmvDYX0ZGxE+NZzjYE2KTGTDjU3k/eGyWX3EHs3exAb6u323d4HQyT7KhjjgmqBJMf+5QcIfxLuCyYHwduqt9osY0XsdExS0iPIWQdMoZbO6JVB8LuK6GMtrQtq7BrH50B/h6H2M5Pfi5QwWUp7dRvNbotzLCLtnVXtQoQIju/FolHXrywdsz9roWWNTKSI5MwngiU; 25:NOtXNcapvbKYILDGudmX1q86dvDjdJoqEaIx1HMn5BRnMk24Gca4dqaNL01j9+ld+pL+EwMEu6Ctg8vW3e/FRjng/Qa2CmpebdTIMFtnkha24pi5rgbfyiNdtJ/VLT36PqwMLJ05hcFzoahURm7BKjkA7NF0DbDKX8LXAGuP3hOri7dPnQdhD2KOT51Apl0B/woMnhqnW7ydc6j8uStj0CHiFbbbeF7250Uai7M4UvHq+FejLuR4qjV6u5CPUsHm2cCynKsV/fa9jTytdtYYYc0Nt4uiPh5zDFtIDLhqkncpFS7/KyIn72aj/yuK/SPYueh62cyA/ohmzVsjaSafPg==; 31:Al/pXhQDmCexFC+0ryEVx0FJXSzB2Qpe6qhjGj0mCH7J3T4FrLBFIbOlJjR8r3lZSt5uIhXFWT+blQGcJVpE6ho78x7YnP5qTZkw2Z0spRq0EgI8+oWwvzjdz2VhVUSURha2jzdKvymNG2iALmXncgGc12gT1pXzTptSLG73cchJM8B+FVyUkCuqkpIDCt9yuDrZtooLZq77VeOEiTHX5fy1ckjl+Rvqtzcw8q6N1Uo= X-MS-TrafficTypeDiagnostic: MWHPR07MB3472: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3472; 20:CIKi0TxxCDpAT/A1B5kTA9Xq1wsZtWSWoj244im/z4typc/3ixpONvA+hNxjylRpRqxhs2l3e8pv7DPRNXUy1SR1gjQhlITm9ACBBmUF5lwrVukL2Upsb00IRQgce1PUX8GfD+UGoohg/8U+AUsVzOGzxWhAsnDi4tFkQKb10kK9dWVPmH8f14m6Yk3x5Wm9tEHiF60md7Ha2eF/CmyXhFECqsbFy+CBJu4Yg3HBhYV9AZNHCA1s0++zIFchTjrGlF0x7hqPZaDuXnHz8aO8rV+lme/XBynOzvKjnRgcyN4CryVk/gflMjaw+4nVPlAyGsGNVbmmShvfoei8fsL/MeMTXN7pXBQqchcn4LjHom5hIIKsqzIUsTtt43WGvW20mIYjLURbSph9xglzE5hY8hVQenemQQz8bzMEb2CL9dOAk1WYxAWhQZ5ebyML1NJgacdTO6gWQOTsYBPvMOzWMLXaoPgM30xYQK+oRb9GodpCQ5xMGm9VS78B56bAGhEjEjbVeCNhwETWeaOyryD3LBrPF2Cxr/npvAJ2sIw3++AE6Bkr81BZBc96wNLiMwQGAYJkW4C69SnSyzr5qXwaVAfjrcjp97wv9LBfGOaYA3I=; 4:isQurw4kqrYYM82CPYT0mT90INGe1l8uyg6e0XvcRPWJvpMUuP2MDGlJ6vI3vA4YhCMun2G4KoqC7jH7HEFmSEC3yVgpUC8e8sTvsrtqrG/xfIb3aR4QiFfz5uW/Q/ApjNg1jm65mcNR6ouQ5fnW7FuerF4fMIYcEbms5Fb+yDSeZ+TLLCahF73d5N+bo6wEcA3CW4iOARIfBOQDfUDTsveWxSb8c40vG94CJqmZ5kHy4imlU6keS9sZ2G4GfxoaI2y49sCftTObLDtCKPNiLw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(10201501046)(3002001)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:MWHPR07MB3472; BCL:0; PCL:0; RULEID:; SRVR:MWHPR07MB3472; X-Forefront-PRVS: 061725F016 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(376002)(396003)(346002)(39380400002)(189003)(199004)(72206003)(8656006)(575784001)(478600001)(6506007)(59450400001)(386003)(50466002)(26005)(48376002)(6116002)(6512007)(1076002)(69596002)(3846002)(36756003)(76176011)(42882007)(4326008)(305945005)(7736002)(52116002)(51416003)(25786009)(8936002)(81166006)(50226002)(8676002)(81156014)(2906002)(6486002)(316002)(107886003)(47776003)(66066001)(53936002)(1857600001)(5660300001)(2950100002)(6666003)(105586002)(5009440100003)(97736004)(16586007)(53416004)(106356001)(68736007)(16526019)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3472; H:ltp-pvn.caveonetworks.com; 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; MWHPR07MB3472; 23:/Z43w8eQV3TmZqgX6PRWNxmFnYoWjcH5BAxmB7mbm?= =?us-ascii?Q?3fkbi5DKYhBPU0/03EF2iROY/UEm2R6AWCHZ9LNZeuZzZvte+DNB31KK0ycj?= =?us-ascii?Q?RwfiyVfuZPGlRT7XKg8URQPWBcO8/j0DTUIK87XqYNHxEDIl60StvPuL9XsG?= =?us-ascii?Q?ea7NFJ2oBJDrowg+dLy57l+CKtboZIdvD/YqTCIbxJ8JIWqd6egTIpxs99Wm?= =?us-ascii?Q?giIAe7Bt16IUUAyvgh3umT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NIyEXghPY0RlTTG0L/zEQABsTAIdpHnudfQnwR1twz60PzVUxcxrAKDdtZyK/PzcFZUDZgY8/u0dncKEtU=; 7:cZG6s3vtpJGLnOMuGFhq/YAe8iS5wiKl3J19DSyCDULIVQyRLuD7qqKYSsAf9fsC59hxhIOKhrLVXjQVKeInN1VsRBT5ld9bIwI++65fDym3n43IK6e2NWu0INJ5UjtubVjLs42G/P1BRY/vfB04pX5HV8Nx67Jlz5BgcOFBzJyQ9wiIo8S6/HyzCqlidqQR4BDoyU/KQHsO1GYo30eKpIQbNG0ZEpbPSXTXTryNQEgMW4bm16O1mDbKgQh1+E2i SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2018 14:41:22.0071 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33074d56-59f6-4325-1d73-08d58e70a8c3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3472 Subject: [dpdk-dev] [PATCH v2 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: Tue, 20 Mar 2018 14:41:29 -0000 Add driver/common folder and skeleton makefile for adding commonly used functions across mempool, event and net devices. Signed-off-by: Pavan Nikhilesh --- v2 Changes: - Removed dependency on bus. drivers/Makefile | 13 +++++++------ drivers/common/Makefile | 7 +++++++ drivers/common/meson.build | 5 +++++ drivers/meson.build | 11 ++++++----- 4 files changed, 25 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..9c2565f00 --- /dev/null +++ b/drivers/common/meson.build @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Cavium, Inc + +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..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