From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0088.outbound.protection.outlook.com [104.47.41.88]) by dpdk.org (Postfix) with ESMTP id B3D871B2E0 for ; Fri, 19 Jan 2018 18:24:58 +0100 (CET) Received: from BN6PR03CA0010.namprd03.prod.outlook.com (10.168.230.148) by DM5PR03MB2697.namprd03.prod.outlook.com (10.168.197.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Fri, 19 Jan 2018 17:24:57 +0000 Received: from BN1BFFO11FD001.protection.gbl (2a01:111:f400:7c10::1:178) by BN6PR03CA0010.outlook.office365.com (2603:10b6:404:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Fri, 19 Jan 2018 17:24:57 +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 BN1BFFO11FD001.mail.protection.outlook.com (10.58.144.64) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Fri, 19 Jan 2018 17:24:55 +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 w0JGZ6aE016753; Fri, 19 Jan 2018 09:35:21 -0700 From: Hemant Agrawal To: CC: , , Date: Fri, 19 Jan 2018 22:03:58 +0530 Message-ID: <1516379639-25586-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> References: <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131608562971238098; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(39380400002)(376002)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(8676002)(50466002)(81166006)(48376002)(8936002)(68736007)(50226002)(104016004)(51416003)(76176011)(6916009)(2950100002)(6666003)(81156014)(105606002)(106466001)(2351001)(47776003)(5660300001)(4326008)(54906003)(305945005)(107886003)(356003)(498600001)(85426001)(53936002)(97736004)(16586007)(2906002)(86362001)(316002)(36756003)(26005)(77096007); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2697; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD001; 1:IgJGV19hJEE5HL3zdgfg34JM8Dl3GL3jDU8E0V0lIwac6cdp3BRzeji508PZ9fjS2f0dF3hfORSZgvMWhrhALoXfIpW4wE1huLXPc3fWAY7cDxNKex2M1Bnone3ef0kf MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0797ef25-e209-45a5-7d72-08d55f618fc1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 3:190L9X6zzISPMAfcM7AI1wflehdPP8aOAUjXDIX0BK5dK35cVO75nAiDtaRd883P24U2dFjUxVKQVwUbT9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OKZKdoZ/D/punyqYVIZMZySG7qQOU5exlsQypaZc+VCCSh3/V8uK92e/Hzi6OaUqkzBTyyHwXZfraBUAga6GLGdO9slC7u8avnnbSRT++0N1J+ceXTgmwPLFZiN+/gT3AjzhP/J7wADUpk3HRfTskZonalmFBi7drjEOWTQdKFL4QISM+Zqc 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)(3002001)(3231023)(2400080)(944501161)(10201501046)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123556025)(20161123561025)(20161123563025)(20161123559100)(201708071742011); SRVR:DM5PR03MB2697; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2697; X-Forefront-PRVS: 0557CBAD84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2697; 23:Y0SdlnYoI3QLoTi0I+Xo2oLzR2U6RmFsjQ66UrIcX?= =?us-ascii?Q?sy/B3OZHYJ4XA/p0jFCfBIV2XafejQZyalQ6sTg+wm3Vvv36xoKg0N1OoZkn?= =?us-ascii?Q?Sdsf7tLDNAtDgrcNhSAdc/Q2kQJvplIajS2b80EvrjVmtbVQABH1dwTLYmD0?= =?us-ascii?Q?8ovyvxLQcn8g1lLOEnPqCai/2WqGOZGQ/Zt/ZmPBZo33GJR7RlhtfC6+KVra?= =?us-ascii?Q?CvzONa0OgcvBTHVFXLeAwP0JLc7ziREYWMTHAWtYXerKsy5hzIE5lp4uKY9M?= =?us-ascii?Q?KcH+6MaNDU+rKsOSyV9VFTvCGjxVb9Qba8M2d2c07icvpSGUGLqzIr17QjM6?= =?us-ascii?Q?9ZiFYbL/xgQLO3O4s71gb/M/Gtorv83BOHWxq1/XuKAmh3d8C/LPMhhZgn/3?= =?us-ascii?Q?DDapta8+p+G8Hrqwlg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6YRGSop32seVRcdwS+lknaD3Yk4ZAZddbo0mlgSt8/Uvi8X5UIuK7Je2Rbr85CniRW7Fv7RzZZWcZUXGS9WKuZEfrP3/SfS50/0SW8PDPfyy3oacCLzB2lcP2kXbo0w+S6yXVKTUkBiIQ7T1XLeI=; 5:aqrl45y0PoLdoZWgt01jgF5ImlNGe1jAmIwJ4jFFpG9P8+I25KrvxdMyoXfx+F/e6VV1vCJYCctK04O1F5u4ERzsGEzQ0ZGd2n6Ft1zw6nf3IsxV2JceXOdUqtikgpLUqVJwGkjB+B0U1ulRAPKnuKG3b5TjSL4TophL6eWt7Yo=; 24:dxgeV6z+ibBJUGwA7Eitq9N9hb3pDm9Ha41GZGJkZ+rYTM6H01YXKB7SM5ZouUrLIsvC4qwpHIQW6LGRVJV29LU29DdHlXyBbpPwCBeoAJE=; 7:huZSJ6EiCZ1XsqXiaJHSPkJ0DpHDDO05h1DL7r4g96z+/Q7Yksp18qrJh+oZlfgwQbjRU2cJVecNAaWFHadV4Is+c1ckcBhMyAJcdosGCB8YRhVpLqrjHrpeXmOmfL15XGmq07fnZa9d8L9217rEmEKx3hVBOjQ4Zd090haOdAQGtkZ+mwTMkF35ylvW70kx/Lck3Sr2SqPE6c9OIAEkvK/yBF4dgUheYEChe5Igfeuvz6kzAFROvVqE78QUrnRZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 17:24:55.0334 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0797ef25-e209-45a5-7d72-08d55f618fc1 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: DM5PR03MB2697 Subject: [dpdk-dev] [PATCH v4 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: Fri, 19 Jan 2018 17:24:59 -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