From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0086.outbound.protection.outlook.com [104.47.2.86]) by dpdk.org (Postfix) with ESMTP id EF0001B336 for ; Mon, 29 Jan 2018 09:12:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RXmLaWlu8Dm4nb7OZsqAQuGq1ycKwV3r9CGnELq8LFs=; b=gqGDnFBOE7s/JCEeEL84IyjnXw56+rLVTVy1aCE0c5RJbV8hnDTWYSpamux9UNrZSmIcJKoFiLmZVoasnN9xolUpgUiifoeKgomsLcsb8U9rdFr2NXzMF07tnvG6ytS6pX900usWFLx+dvoKPNemOS68nId8miyFZo5rwXiRExY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (192.88.169.1) by AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 29 Jan 2018 08:12:32 +0000 From: Hemant Agrawal To: thomas@monjalon.net, dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, olivier.matz@6wind.com, santosh.shukla@caviumnetworks.com Date: Mon, 29 Jan 2018 13:40:48 +0530 Message-Id: <1517213449-678-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517213449-678-1-git-send-email-hemant.agrawal@nxp.com> References: <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> <1517213449-678-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: BM1PR01CA0094.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::34) To AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1135688a-ce63-449a-4878-08d566f00cbc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:AM2PR04MB0756; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 3:8apRsLK4pDiJ458FinSN6VisrW3wQiRVaA4egVcdMqQAXTwQc4p3Z6bK9wR6bBDjYj1F2aT1s7kzfzUSMogYSVjEwZcdBij74bJuRFpaR8lElwlYDa2Nq9rLdWNoAvv8Go9DbYD5TzXMkzh5DbHon3kjNvMuH9ESU4YJ5rtrNTx+scUBJxusBP3fi+NXOgnBtD1R0tLlFvJd1O/Rf8SY95o3B8ctZPedNqUmmf4QbT/Hkya2jJyk8HpAoQQT+tM+; 25:xIEy7myOn+fU8xiarJvQywG+0lWWf1Zr1jAKPrzDO/j2uTnoq3HU8n8P8+JCYzrj3z9FFBqBpV3UQXf8MkN1VtujdfQwy/arjivDPYfihaaBkhH5PM97FWx+CeVatYF+teFmhWblaNYhpRk4buoeDs46VolAyvb9yK0HwGsY7vdFDmdsQdvtI7E3DEe3+UrQvSBES7lItfAqTMzTz0syWEIC8tFfzj0A9TD+cRBezYzk2MH7+vWjABPiX82XKARRRVjdo9Zjwa5yziSSopFEVHIj+0Vf0W+j2vSngdHPwp/T0lLOaJeYiEc0xQSiX7HZfly1nMZVE+s4QZUk83zL4g==; 31:dzZ2JLrhWxKPyCf+zGSqp9MjsG9w9U0P9/oQjNo2XbV7dlMKtaBzS0ZmeBfQig68PW5wCVjhArEeyEsS9eYJFS8duUXbbhz6gq0agvNAXQLN4cUXotJf3Sc21/LVWUrQmAEujLf8ASFCCQ1OIvruAkhdVjgOMKEhHwwM1XGVcZ3T0x11IV11wMijmXKbsIKWHvJGnOOsyG9oNJz+oPq4vOceNlc88bb5lxQH85RVmKs= X-MS-TrafficTypeDiagnostic: AM2PR04MB0756: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 20:3QhGQ7q1lFNBKQT2xwOoqHCmT9aJxDTqULr0HpJ6EvXsu8OG3cESasd9Q0xAlDrGb03AhS7oKMUSLl+dC1m83RV4SLhitub4x3OFkQig3R3Nw3b+BFr5YTXlflXYOsCsZQ5VQ78R9NsfQNh+2N7xjWDEDKCNQLnc8tXC4G5EKJB1qenKPXY8O+0Zjg0+lnO0AULFetnpyK56nhEctOIpZGuXMBpz38z6Go4tCjcOinof6KBp3XG1jzAdMg0+HferEuUUFRN3X84bBBB7iSg4yDFA0rszHggd6gvd8n1PKsmDnsiBAz4KOWbKTZUqxgyJZpySXaKyRSfbAVg2qf2DY6PGvEWUccGGw0cGWX06YfdFH1P7XBLw4Q5Wwq66Aci4f8vdjX+UgE1UIO/doZ0hd3veGqo0HYsDe96jF/CeOP47CtFDHyBJVTpHQNP0doClf4w64FBsfqrdG32XwmjdRmew4JnW8zk2P33f+6ljL0VUJhXpi+kulNl3Qb+bSSqT; 4:mYPkv5P3U+TMtuXGDKO3Xgup3FnXOJ0G4ochv+Lr2ZL6i9YU+P7h4KHknKBINGhcnzE7MqX/uFMRHZf8VIAoosmvy/y+1HA+t7AuJsI8V+Ng9l61AeW9yWVJ9BGRVKn5h41WtWVJMd3jagfFS6xU65zZSik7VgJK5oGnOXIm0j9/FRfDazmwSNAo+F/kmpaMJXy6IbA/aR+Qx0jX54a8CncFNb7TNyS0LuNSkMznOA0OcY8wmnG5dO3WLOMdOvQZv8F61EqSIGdJurURoYOfAc7XSwdxoP/SrCol1hwyxBDGGY4PkvdKaLyhEuui1qTS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231101)(944501161)(3002001)(10201501046)(6055026)(6041288)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0756; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0756; X-Forefront-PRVS: 0567A15835 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(376002)(39380400002)(346002)(189003)(199004)(5660300001)(6486002)(4326008)(575784001)(86362001)(16526019)(3846002)(105586002)(68736007)(36756003)(6116002)(76176011)(25786009)(6506007)(106356001)(386003)(305945005)(7736002)(51416003)(52116002)(97736004)(81156014)(81166006)(2906002)(50226002)(8676002)(47776003)(478600001)(8936002)(26005)(66066001)(316002)(16586007)(48376002)(6512007)(2950100002)(53936002)(186003)(50466002)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0756; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0756; 23:3GFXwO9Ydh18wHaOKYUEdQQPOLW5+nNpirR5EEfN4?= =?us-ascii?Q?+ztc7CjMU2uxhkHnWFZ2Xscms8e2C2+auQXcQOR09AEmzXQhAQrSQSWjGh4Q?= =?us-ascii?Q?UltXAJNbxAuokepu1knrNBOo/WDF9tVSfUZ3qiMr2uG6Lp72/OXA8cZf7r57?= =?us-ascii?Q?zpPENUT1cMeYrZwPOTQrndLY7RPP3MxvgfY1YffygNeHLa+ztnav5iAzvS7W?= =?us-ascii?Q?J3NjM+1F/TAhUalUia4PRCc+Ng7mpJDCbbYXWNSSUZwwCLUCOWgmGJOiGC8a?= =?us-ascii?Q?U4iuIYjZZ2BCfE5+fUYzO95LwvAy9YKIuFnG2okd7SAyvOwTTWHFYi5zIIt2?= =?us-ascii?Q?9bpiHPDO/L5YsBDOij8W/UsN2SPfCC4GhtmDmnys3ld3VzWH++++rd+3pwh6?= =?us-ascii?Q?TnovJnsCPPiAJ56y1rp2bROn+tE+zwFe7E8Xt1btZ/C/zLDkvc64sS7losMi?= =?us-ascii?Q?6fiqisSkMbPH33sO5npAsR4B4tEi3gqlX+LJFhdLNxOgN2Y7a68f3aoNlr9N?= =?us-ascii?Q?jhHATa7CdkCfxGaeq1kLXoom+CObiXgMrNKkEj18IjcPsPISShQCP9IaQ7lk?= =?us-ascii?Q?qX0r8wxi1i2wcczfahP+ZgCENa1blZZF5HrALHxWbTDHzxXCcQ37gel4uoMy?= =?us-ascii?Q?L08ub8+L1Xb4N26gaEHgs7nWyx3Yd5NwURpSEFAVrfZj33g9QGlB4erxmIsM?= =?us-ascii?Q?PZfBLYsYX8afQsvtDf8iAZV2fJYPxj4ipLr4cJM/3iFdL1X5KGAsspA3jWeT?= =?us-ascii?Q?cwkllz5p8ZrKtkT2JMgoQsVI2tUcjt5NPH9G+ahyI8SNQFGKbHraytv6OyTP?= =?us-ascii?Q?Ctl9sq1qOnoJaDH7a1RN0W0EG8q36UYQeiF2x359P75d+HYwUqnFWrncbvA1?= =?us-ascii?Q?1OguYAETrWFE5FBEOYcjH1npZ05XHrmD+iBMbiIKyKEwaD442KZaUdgrEmO1?= =?us-ascii?Q?bzlHB39AspXI9+11HrwHlOY4VMvSSbkRrweZuWLCD7tisP48gK0FZnzibyRO?= =?us-ascii?Q?vbsNCODEgKpIVFtx8NH6ohf1+oTXOLtxpW7LfAol1Kj8WPYwc/mkPGGoK0vw?= =?us-ascii?Q?HYJRx3HgeNd62UD0ndjK1IdAzztEv3rVunj55OHDzuvh6zjgQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 6:yTUBXVlx4P2a48aMxaZv9Dc5X/2//j3IKB56/k+3c5eXlqBL56YymSw85m54Vr6zHnP9txmj92bsMNKLNfjajVbkbLXFsoPlHl6YNMGUW4e92hKkV5Xf5c0N9jnbJqrV8qkdQa2JNLsRYje1R0ptFicgU8rCOVj95ceJ1q/pXAJmEpfPrtY9ct67fAELXahCO4KFxAauD8lVEqJjJsyYtzFVLuPN3uUE9QQ11aOOlOSt/BeQV0zME8+RX/xVSEuLteKqSxcueqRkjH/wm4a53N4bEtMTrcOu4vaGMLolYMdzaSyhkdN3e983eCnv1gNLqiGE1iw1Puy/Hwy4SNaJtXspto4HXe4QAS3rawONPZE=; 5:WmtDExazCpMgRVahUeq+2HLLm17CCWdUk2AV8brVAuMpOyf1EMusr9diMkZkPp0NSJKXS97eai8GnZcuYU8efyWKJN7xKW52cZupqsbUxaznqtL61kCkfT8zdXepsFXiWt6mWbTXC8bzqeN40rvLfCS1IG8+vjYcyzj/MnaSarc=; 24:BTqvV/fQapDJXRTRQvvRAviTLkFuqhrosGcW0UMwu1twm2qkDBC2JxcH4BEW7a7j+gbv2PXL5nMXgBKgt3SgUrs4v3DEl7ChGBOrkkvc6qY=; 7:XeAOLFF6sHrtAYZkdUT7IYRnpTtDI+O+aZ111YkL5ZvaJDthVTPe6u8Q981ZOQvOT3EGc9bO7BjWCnsSDsyMG4qQix08D9uRaa2iBSkhuSIxHCpiHmvtwYAjeyTnC6z2RnVuLf125InIHFGj5dlTvue0vJv/xx2rAZVT2veqGTbjPQmEkKgmhRkPU1F7tAk0hf7GHgSIejLjSsmP/ILRU5w5MLY7VIxrX0XTlH/3pF0ycywFBk9UR+6VWN2Isn3U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 08:12:32.2925 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1135688a-ce63-449a-4878-08d566f00cbc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0756 Subject: [dpdk-dev] [PATCH v7 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: Mon, 29 Jan 2018 08:12:35 -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 c2ca16a..ab9e67d 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 ba33566..f5840de 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 @@ -469,6 +470,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 6fa0c3d..d613660 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