From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0086.outbound.protection.outlook.com [104.47.40.86]) by dpdk.org (Postfix) with ESMTP id D80F81B2D8 for ; Thu, 18 Jan 2018 14:28:02 +0100 (CET) Received: from CY1PR03CA0025.namprd03.prod.outlook.com (10.174.128.35) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 13:28:01 +0000 Received: from BN1BFFO11FD036.protection.gbl (2a01:111:f400:7c10::1:180) by CY1PR03CA0025.outlook.office365.com (2603:10b6:600::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Thu, 18 Jan 2018 13:28:01 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; 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 BN1BFFO11FD036.mail.protection.outlook.com (10.58.144.99) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Thu, 18 Jan 2018 13:28:01 +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 w0IDRdIq028023; Thu, 18 Jan 2018 06:27:58 -0700 From: Hemant Agrawal To: CC: , , Date: Thu, 18 Jan 2018 18:56:32 +0530 Message-ID: <1516281992-6873-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> References: <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131607556812069082; (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)(396003)(346002)(39860400002)(39380400002)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(50226002)(8936002)(76176011)(86362001)(104016004)(97736004)(2906002)(68736007)(85426001)(77096007)(26005)(16586007)(296002)(2950100002)(5660300001)(54906003)(53936002)(6666003)(8676002)(81166006)(81156014)(51416003)(508600001)(6916009)(4326008)(36756003)(50466002)(316002)(356003)(305945005)(106466001)(2351001)(48376002)(105606002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD036; 1:jZa/SpKp/JfLt05X/4RkZ1hlwDN76YFhf1bfXh26VayDv705UHKHsgGk8qBGimIFo6lCwJ6CwQkRCT/DX1AWFO9ZLrbsVGScrwLaVPyqEkhrpyPm8r0jguUC/7sn8bMR MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a8a6bf03-1b79-4bcd-58da-08d55e774c01 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:mFBxyIILS3Gn14fQxt/M0+cWNXQIKrticiaE8RUA8ZcR784hIevwgwUewx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+SRlKKPis1J1tDgTxw+dOS5gWG8zxWa2g1u08YxqhLkpgOJd+OSRynXKEOOsuRiCGkPG+L8sEYj4kjJN7SGw8b/rRrjtb3UUbFcTFJMEsB+bQB5obSp5ujW1eR2kcYxQWXtfXqq2EGBdaUM4ZiYwl9rpCi1G9IWvyozKFJrt62OZtfO15n0BUqauCz9qeWpE6Pp6QSTIXqaViiXcJiaTxPe X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231023)(2400062)(944501161)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123556025)(20161123565025)(20161123561025)(20161123559100)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(201708071742011); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2353; 23:gd7IkBIr5gnc6r6OY38P0GGIgu/evyi/n1fbrEIsh?= =?us-ascii?Q?EgnFoZwgGJD7JD8FYtNuY+Bi1Fz0mkT477qB3nLlVbmNr87YJmzup/vkcXat?= =?us-ascii?Q?vFN2gCauAiCsNpS7vL2WaTeo6yZkpKNYJNA3lwT0Ll4O1/EYrUNvmRUA6l2S?= =?us-ascii?Q?5rGoFqXyzg58eSr0YwA30fMJnWgakAYfBH0w8QHDJRqpQ+k7AaSql3hA4a7R?= =?us-ascii?Q?I3D4GJzmyrxB3yGU0qFCdVDdlNTll/JZDsu2wWPTYDF/TtHRIYtXxtVZaH0P?= =?us-ascii?Q?1d08uPPemMvSquPSg3gJWs2xSB7GqzdbRaGqPric4Q9hC44vTdHwLJVMHoJW?= =?us-ascii?Q?DwhXcRoPrbDkiOypvb+cIx4BMUBQ6V++UF1gMKoGbka231Ou8Qtutracvrro?= =?us-ascii?Q?sq7AgyjY/MiNaiCPbOYtDQ8nrILmB/HecptSWWJP2yrA0jE0xh+huPqGFMVV?= =?us-ascii?Q?MP5PTExkbyKGFK3j93K//HgpwLzgfaB+Kb1dq84U32WZLZ4v2RDMdy3TQOrU?= =?us-ascii?Q?g9j80Evy5FkAnztt7O3yO0VV4YTLOPoB+z7kJU15PYSzq5eT5LGE9rWdObVJ?= =?us-ascii?Q?eX5yBD8sss54bu1YlkkqileY/FgtCvFH5ChUvNdACT0zuvz0Jf6lMgREEqdi?= =?us-ascii?Q?sGlv6x2iM6qp8T6e9VFtOgWvxD9rvUp67Krf8EPGfrONS6+L/Q4NWl/urHBT?= =?us-ascii?Q?Mc4nxtM1Rd87tdum3RENNc92dVcL9LbXM0blmCPsQjh74w/U8sPx1dOpEksu?= =?us-ascii?Q?5/oR0F1Co2+4s40zp2yYp+mRsFSw7ab+9uOI3IB12tQ6NR1NTJXIPQaFwQ1o?= =?us-ascii?Q?8bmOlzaVIzTxBrbREutdrSc+MV6nbF8bZIx61acxvNMGIjSgUnFLhTnWdZB6?= =?us-ascii?Q?oLWmk5DQrUvqq6wxk9JjbE5jycbTUYPkT/VpMcMrDTeoxT+xs8is1duSf3jG?= =?us-ascii?Q?fzPS20YndIEZsh8roaKGCDqk2I2ClmekYyMHMroHRehO2MhYD6WKtAFEipPl?= =?us-ascii?Q?1CobxU+V0X/4Yro2SAAEltkl5XJadFvBv7CJDwogVh2AFd9F7+D/4ISRIuDo?= =?us-ascii?Q?w4oQdbPoyREkNHJ4/vpVBHpg1+wMCeQQWwvJ7MORpYKau+XHA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 6:+sih+NinKpcJBdRugRBVkFUpwjNa/TtjqYI7Kuv8al3E2qVzXXsFQd2yLvXUS/5F/2hqAWSjzcp8Ds/vu97tZGD0uL2ySTe5TjOZRjI9ymW2o5AMyjozOKuPqGODITiUGtxYiJf4sf7YPPxUNV+b4cHmDO/be1cUJLf6haHfcknRhGhotS78qikJgim15My4RlQhQEsPhkfC+a2NY4vJrsJNwBYSbTadwcpoaPkU295yGNqeI6Q/VhRPrm+pOzOkstPqW0yFyD31erIsl52dVhsmR4jUf9D2BhOGcLPWpJnGddHaNb6bBC9L1FzzeRflaHIN/liwF+AN/8ZzqiNRdf+Bb5mgWKetkRjIjbofL9M=; 5:ogmv7a4euBgHYcDKhSgVj59H1OzCoktrnpjP2zXZ4kCHTGDkO7yOahWZARcJMRvLdKqkhmP5IdXeKMeQeSggKsczkHCLE+kpr9roLNuSHIJC+2TNEKxkRLf/7dbJleAsi6v61xoeO7FHcyyrrGoDkHgvIMV4mfF/LUkRejcdKJg=; 24:j7I+1ohPP+XNLDbjjviO2t9/Cr5y228Q5Y1lAQfvWIaB5Bml0/81X/Pn19KgbgH0WMdQBJcrHjj13W6IUVT0Oo4IEEJENzPA03Jqv+CopW8=; 7:XGM6MBU34hHaYmPtFNFEXJcyMAh92BuchLoG5Fx+w74CxeRLvF3X7Sg8RbDG+yGPi3byoI0B9Tv3wq4TisYUzC55nJJXErXDV/1tyrHb330N8VXB9Ty2xvW+gBHgeqDe8mSo2qnjO7hAJeA6h8JzbvpbeK90QtNIR+f/PB9coQyZVWVY9kq5dhb0u1rXaRKJFvcrsLYq07U8i8nKlKRcB1UfvPkHSJA8sG7TdWOy7vhA+FZjtizOvibUePdEEWmT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 13:28:01.0354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8a6bf03-1b79-4bcd-58da-08d55e774c01 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: BN3PR03MB2353 Subject: [dpdk-dev] [PATCH v3 7/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: Thu, 18 Jan 2018 13:28:03 -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..4cec726 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_register_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 ffb81c2..0e8159a 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -247,7 +247,7 @@ dpaa_mbuf_get_count(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