From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0084.outbound.protection.outlook.com [104.47.32.84]) by dpdk.org (Postfix) with ESMTP id 4BCD84C74 for ; Wed, 14 Mar 2018 15:56:02 +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=TbFVPJwjJioqMN6mW6fh+Qhc+X6gh3idhE9f4gTykl4=; b=AcDw4gw1p3n52hNcQ8iEiHodwNTT1v/8QYkZyfuGxsluNDAOTeKHUT+tqqcwTvv3hozK/N9+iHnUysrSwXQ6cYu8tTuNPLdKgbihhgQfZH5NoIgomfQS3FIEET9V4RereWF2pdX3fODaBeW+pjmlc/BNxqdxk30qaViLYlKBfXY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (122.167.92.158) by CY1PR07MB2521.namprd07.prod.outlook.com (2a01:111:e400:c636::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Wed, 14 Mar 2018 14:55:59 +0000 Date: Wed, 14 Mar 2018 20:25:45 +0530 From: Jerin Jacob To: Liron Himi Cc: "dev@dpdk.org" Message-ID: <20180314145538.GA2482@jerin> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [122.167.92.158] X-ClientProxiedBy: MAXPR0101CA0050.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::12) To CY1PR07MB2521.namprd07.prod.outlook.com (2a01:111:e400:c636::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: acfa59b7-eae3-4356-5b6c-08d589bbb33e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:3BohtblW43Dc0TUFw2UOv+maWXL02nox63I5AgjLiF+zuEF2YdPXk7oeIzZrV6Ybj4TslO31gIeYo4e4EH4AglZ5DLoadkSV5qtH6C+MhENcVutLdSeCiKMn5HoQtljY2AVGQlll7Q+PAH29Tt9UBNWEbkiuNusPjzWc3UBP2E4nMw6eapTa8+mWLcSy9b33wt46G49jH5jGoWtLXXZgJaHb2K4ATSd9+wS6ADELbTiZyd3K3tIznaE8Rl1QT3KX; 25:nMvAWlcwQqopgCVLbY12nqFGBpeCap3r4jzw7PwMO76Nw5kBTJt3p6ZMuuHfmBRwK3f8WWUiEHUagnrLe7ySMo4SdP5DngHPF8wY9qljDqTIVmERY966bjGXX6xXJnQokOz+/lDl7Q6nkbeQv1X5wEC6wOiC+w976o7phaOv/TMm8Nm/oIQt35QUeEF6WFRXr7vG8OL9ks4ijVENktjqc09CaoEl066H78+QqsZBttxCStZH9tDKlKmURpT8/a/WDH1hgMu8UT7LL4hLhLzkp9grmpaSw9sR9igmMBzT5nfXfhk1WMHe4kQ6uSaFIuTiJL9BlWR7Pmi3i+nGjtDj0A==; 31:QCVUpOtBKW5WTO2F+cqBB7lt7P/9Qac/e2YW5/hAb45/O5P755f0iayUmvxnPqzLMq5grIptug2UueFuGRJigBwrwFDHKaw/Is4u1nkAzieyJW5I0R9rp4KpyLak25zkZcvayHvLfzjYdjV7ib8sHFbhvfjjgHi5pXWV6PsjwbB3Bibqifzi8v3eExTQ7rflNcXejvH1uHCsp93JM0pwEOQivU8RbQ7/+seP1BfcIXk= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:JvlgSLyyfUSwMzdiNcMS1zClZFQT2iAUtBL/DykK87hIeyvKexnooWRQhAi2WpPcI2vRO1GuihVo+QkRSo+eXbn+c85yKcvVd0U/jBcW0uwKlWhAQcW2Xxsl0xEMaJfDrcRmNefI4EF96umXyxtv3yHewqGRS6MCkx7v9IBM9G2SrlzSMT5FErxdIzACi3UccJLuhTAOHdwf/aTLVJacCgf+biyz65U7dD/XODv6vsQQK2tSe0L1ksIKbfwAIhh4YPmN2xv6rAHDJ1t9JqV+9t8xcBAXA+IkpZbhPHLLZEgRAzqmUh+lViW9A2ckhV7y8aI6Kk5ZtbHk3UZThHHBH22GnKQDtFNauAwIdz8GmnIx+fzeyMcawZnAKR4m0qm/11q5GW+Fbv6Ci3kzXIavxCTdA3hmEnfs6tRlcmuxS4HaOTCbRCM2jI0lodwwX74mZHu6TsdqBb1kf9oBTl4IknTUfoOrda5PDG8pdYSKEu58R+ekqZxH1Mrr5H9pQX/wlb4QYZ7Me4K2YUPbNOVecMunqz6jWgEx2Ui0PgPC/Fxq5YQTv/HaJZJP2x4u5+oyVJifFE6VmhrLn3YBj2FhVnB5aPqmGQWTZ+JLyXWSjnM=; 4:H1zbVSnxPC0XycHVi9Auev0YmR0amfjQJh0bAXsR2qR6XFmjQ/XWICV9hgIlOBcug5eGtzvchg/IWrE/5p6Btpw+Nx7pwH8Du5h6FECWgvlH9KsJG5zjFUUwuvrnh+mbTwGOl30oXquchGCddaNivmRlrFyq174pZbrwUvKXr78TwHbm9tqwRVXV6l4vzlMB3v8+ht8LdsWHuHKYiXUwTN2tst9zD90cZyUnwqIpjJeV+L6i5Jgbc7G/kKYIq2EpdWZ81nRoM2iTIHht1Kw4Rw== 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)(93006095)(3231221)(944501244)(52105095)(3002001)(10201501046)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2521; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(366004)(396003)(376002)(13464003)(189003)(199004)(33656002)(229853002)(52116002)(966005)(105586002)(316002)(81156014)(16586007)(72206003)(76176011)(8676002)(16526019)(1076002)(58126008)(50466002)(68736007)(5660300001)(6246003)(26005)(81166006)(186003)(53936002)(25786009)(386003)(106356001)(53376002)(6496006)(59450400001)(33896004)(6916009)(9686003)(2906002)(66066001)(4326008)(6306002)(6116002)(47776003)(55016002)(3846002)(97736004)(33716001)(23726003)(478600001)(6666003)(7736002)(305945005)(2950100002)(8936002)(42882007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; H:jerin; 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; CY1PR07MB2521; 23:/DSpMcdOzhh1CDYgwZU4Afug3z+l2RKYuZFqpcKxb?= =?us-ascii?Q?qm5BMzM3e7n4FAnbziPZSsIo84sTvmg6G5NOa6JS9y3Ns1gYUY47iL8UDu9K?= =?us-ascii?Q?7kViiqSs7DPgwcrTHutnDiYJXPWEK2fVD5DKCBsFQqSZVyvQLqV614Q8iv6f?= =?us-ascii?Q?FlEK1/6xLp30OAcJ8lifwaEi/LVHltEmglXI5HA1nDSYLPtn25sOvCgI0JcD?= =?us-ascii?Q?jzjvjMWvrKwV9y/8BeWO/+qczd4u7JPJ2xLn3ixpSpHcNAZP6boK7QTKyJw1?= =?us-ascii?Q?VBbJzbHTVYMpzWM8mM5J45f00h++yJ+ngTcSAtiTZtOyRFRMz5XxoLE0mMt3?= =?us-ascii?Q?QbmuDB8Nk1myaCHSnIx9owd2JvpTg32ly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x9B+MltLVJ/pHy25M1103FIHfEb1QQVpAFstwyXuZUnf1kH5SHBReVDlxbupmYRTCMUqPyBWFKUf3tuPayhOP70NdG9yx4qtkbOzZdKVsgxDaP57VnvRLEx8YHxkTdjek5sSwOg41pOguHmoIwneqogfIkvzmB41HXcIWjlrWGlv7xhoPLkBlyW+IHkAbb4LIWmYqF4WJm SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 14:55:59.2203 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: acfa59b7-eae3-4356-5b6c-08d589bbb33e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2521 Subject: Re: [dpdk-dev] Sharing Common libs between PMDs 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, 14 Mar 2018 14:56:02 -0000 -----Original Message----- > Date: Wed, 14 Mar 2018 09:34:40 +0000 > From: Liron Himi > To: "dev@dpdk.org" > CC: Liron Himi > Subject: [dpdk-dev] Sharing Common libs between PMDs > > Hi, > > We have several PMDs in DPDK that are using the same underlying common libraries. > In addition, we have plans to add some new common service into DPDK that already introduces too much complexity with the way that the code is written now. > Therefore, we would like to move all our common functions calls into one shared/common folder in DPDK and we need to find proper place for this purpose. > > Can you suggest on such a place? There was an attempt to create "driver/common" but latter the common code for NXP HW device got moved to drivers/bus/dpaa/. Linux kernel has something called "driver/soc", I think, "driver/soc" may be more appropriate. Currently DPDK's driver build dependency is in the following order (bus, mempool, net, crypto, event). Other than driver/common or driver/soc, one option could be to - Move the common code to bus or mempool and - Across the drivers, include the header files through CFLAGS if the common code is in header file http://dpdk.org/browse/dpdk/tree/drivers/event/octeontx/Makefile#n13 > > Regards, > Liron > > >