From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0075.outbound.protection.outlook.com [104.47.34.75]) by dpdk.org (Postfix) with ESMTP id 489271B024 for ; Sat, 20 Jan 2018 08:25:01 +0100 (CET) Received: from BN3PR03CA0106.namprd03.prod.outlook.com (10.174.66.24) by BN3PR03MB2356.namprd03.prod.outlook.com (10.166.74.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Sat, 20 Jan 2018 07:24:59 +0000 Received: from BY2FFO11FD016.protection.gbl (2a01:111:f400:7c0c::194) by BN3PR03CA0106.outlook.office365.com (2603:10b6:400:4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Sat, 20 Jan 2018 07:24:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD016.mail.protection.outlook.com (10.1.14.148) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Sat, 20 Jan 2018 07:24:56 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0K6GGgi024888; Fri, 19 Jan 2018 23:16:32 -0700 From: Hemant Agrawal To: CC: , , Date: Sat, 20 Jan 2018 11:45:07 +0530 Message-ID: <1516428908-5430-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> References: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131609066986576531; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(346002)(39860400002)(376002)(39380400002)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(4326008)(107886003)(50226002)(8936002)(81156014)(8676002)(81166006)(47776003)(68736007)(16586007)(54906003)(104016004)(86362001)(316002)(2950100002)(6916009)(6666003)(5660300001)(50466002)(105606002)(2351001)(106466001)(508600001)(53936002)(48376002)(36756003)(51416003)(2906002)(356003)(76176011)(85426001)(77096007)(26005)(97736004)(336011)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2356; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD016; 1:n43o33XKgSAi9gyJIQNekKVxnFV+0vNE6db14lkFuD6EvpaOvPqpiZQFcjR3Np3dBcubcIDGmAXZBHkjoRlIeCDxEVlOrX4xacI3PDD0YTj25rpQpSXfcpFsNKITryub MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4b047a02-5200-4837-2e2a-08d55fd6e956 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN3PR03MB2356; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2356; 3:cQoLaO9+L63pSNzKMi60xyq1cvYCVM1IqzNNxpPmhdxsDCHa3mixtf8JUSTCkigG8zBhAQyuQH4hBg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IXeO276Zoup5xhaau2ccOBPmjyAbOWutovUXpFSeoJ82joLRuThOerh1x3EaTZ6y3bAghgAL6TMjXEdF0XILL0nYFrOYdauP1Hweht1mWbTF1fwRnR5Fq7z+pJ6oVs6l/xIFuxd/4fwY0jlpafYiQIe/JUoyYNnIQAWUAThpgjgkLx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231023)(2400081)(944501161)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123565025)(20161123556025)(20161123561025)(20161123563025)(201708071742011); SRVR:BN3PR03MB2356; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2356; X-Forefront-PRVS: 0558D3C5AC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2356; 23:b2mxjFJsEMOpedjPoyBXKH4I8YZvAHC5g+9Eq9Zhc?= =?us-ascii?Q?JDG8BY6c9Yem7v2Ci+fHcpRyKsYrbvib470s+XfT9TfbZIUU1Mali1TP17R0?= =?us-ascii?Q?aQLOGZa1DI061ZOSj/cNvx+AcFijh2M4PPEfPkmJKZToQ10JcytZPno+WVQH?= =?us-ascii?Q?q7mREvsMPzLeZrpzC+0TN0ISVuYdMSj9OBQRibP7abMtibZmaVoRs2YMJplc?= =?us-ascii?Q?DDAoklhhJ00ERIlECIH0BOQ7vlURVCTHhDYVsJEURpHu01vCGay+4brz1ss6?= =?us-ascii?Q?iur02sgm4UFnryQoQiniEZLTX8KR3lckzHwClAb1PwxQw8UAagxzYczv+MaG?= =?us-ascii?Q?kVSTtSbB+IhtLyo0jxOaXzvgMxCX7+t/NKPmzdxsZnElnhmqu65wGMRL6Bir?= =?us-ascii?Q?2PYuuWKEB5Qzrjj+2xBxQilVnMgsq9+/9GbmLbtOC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X408Z1KbVQXce776zgLJYDcUB1vwyE/sP0s3KLxx3+owZo5U1za4qiUjy74jyZtLwF4J7RjG2XTk8q0HnbaEDLGRLaKyIkBv1y2E7JYoVAvnkib286DWWBrm/2qpTmQ3QYuT4yQp7XJ0euyXTnYLD6813Hdc1EaGfgcYlCejmN3U35ylxzOSonM=; 5:/AXIzp6/c2T7EK5b6harNmIB4nIB7/MmnOag5fLkTIv0lb1fBPZBRVjdzntgFwNvavno6STxIDmc30znkOmiNYNzXf/d6NkDq2dj7nWLwKAjT94SW0BnN/+ovz5T47sC+bLIA/xB4+aQSpyWGaJ+89aqmKVSC6Fn4kxU60F4e3k=; 24:JqoVZ9aPUVoFjkem2QORcUSMXCIcti1CNGwb2aLvgY8PdKRSyyH01ZjCVeYbkid2Wir69/tVJmqNNQq7/uz4C1elToZ6BnWF/P/u79CoVbU=; 7:5pGG4oRpQw7kKFdIA5CknsFH570zEPybKGXgfpoiTm/CtRctMRlzXHoWxl02YtOYH2uU7B6X/imQc7Uq7TIDxgdxJxIy7nzXn2XegED/T8vZHnYfjxwh8yDN58XZPg0mPfoSyQqJ/Gqigt0NmJZadhMUcEX+5K5mjx+DjmutRjqKxlDs1lfSHtQIc8lLlTyvboO30/F9npUdrXsegFZQ6GpJektU6L2Zl6eYSi2KHUTN/BLssaL3pL85Gyz8Vd2X SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 07:24:56.6296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b047a02-5200-4837-2e2a-08d55fd6e956 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2356 Subject: [dpdk-dev] [PATCH v5 6/7] dpaa: register dpaa as platform HW mempool on runtime 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: Sat, 20 Jan 2018 07:25:02 -0000 Signed-off-by: Hemant Agrawal --- config/defconfig_arm64-dpaa-linuxapp-gcc | 1 - drivers/bus/dpaa/dpaa_bus.c | 2 ++ drivers/bus/dpaa/rte_dpaa_bus.h | 2 ++ drivers/mempool/dpaa/dpaa_mempool.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/defconfig_arm64-dpaa-linuxapp-gcc b/config/defconfig_arm64-dpaa-linuxapp-gcc index 5f882ca..ba1a1bd 100644 --- a/config/defconfig_arm64-dpaa-linuxapp-gcc +++ b/config/defconfig_arm64-dpaa-linuxapp-gcc @@ -25,7 +25,6 @@ CONFIG_RTE_LIBRTE_DPAA_HWDEBUG=n # NXP DPAA Mempool CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=y -CONFIG_RTE_MBUF_DEFAULT_MEMPOOL_OPS="dpaa" # Compile software NXP DPAA PMD CONFIG_RTE_LIBRTE_DPAA_PMD=y diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 329a125..20e8af3 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -467,6 +468,7 @@ rte_dpaa_bus_probe(void) break; } } + rte_mbuf_set_platform_mempool_ops(DPAA_MEMPOOL_OPS_NAME); svr_file = fopen(DPAA_SOC_ID_FILE, "r"); if (svr_file) { diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index d9ade83..280443d 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -17,6 +17,8 @@ #define FSL_DPAA_BUS_NAME "FSL_DPAA_BUS" +#define DPAA_MEMPOOL_OPS_NAME "dpaa" + #define DEV_TO_DPAA_DEVICE(ptr) \ container_of(ptr, struct rte_dpaa_device, device) diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c index ddc4e47..dc4bcc9 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -290,7 +290,7 @@ dpaa_register_memory_area(const struct rte_mempool *mp, } struct rte_mempool_ops dpaa_mpool_ops = { - .name = "dpaa", + .name = DPAA_MEMPOOL_OPS_NAME, .alloc = dpaa_mbuf_create_pool, .free = dpaa_mbuf_free_pool, .enqueue = dpaa_mbuf_free_bulk, -- 2.7.4