From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0044.outbound.protection.outlook.com [104.47.41.44]) by dpdk.org (Postfix) with ESMTP id 0C4F7397D for ; Mon, 22 Jan 2018 16:03:20 +0100 (CET) Received: from BN3PR03CA0101.namprd03.prod.outlook.com (2603:10b6:400:4::19) by SN2PR03MB2368.namprd03.prod.outlook.com (2603:10b6:804:e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 15:03:19 +0000 Received: from BN1BFFO11FD032.protection.gbl (2a01:111:f400:7c10::1:150) by BN3PR03CA0101.outlook.office365.com (2603:10b6:400:4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD032.mail.protection.outlook.com (10.58.144.95) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 15:03:19 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0MDqVQT020039; Mon, 22 Jan 2018 06:52:46 -0700 From: Hemant Agrawal To: CC: , , Date: Mon, 22 Jan 2018 19:21:22 +0530 Message-ID: <1516629083-13967-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> References: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131611069995691742; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(376002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(76176011)(6916009)(2950100002)(5660300001)(575784001)(53936002)(97736004)(2906002)(356003)(26005)(69596002)(2351001)(86362001)(6666003)(77096007)(85426001)(54906003)(16586007)(8936002)(81166006)(81156014)(68736007)(8676002)(50226002)(316002)(305945005)(4326008)(104016004)(47776003)(48376002)(105606002)(107886003)(106466001)(336011)(50466002)(498600001)(36756003)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2368; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD032; 1:lbsfXO2MJ7MDbZPjZtbHdkaaTGIjMB8rdz+z8ib5UNSKWwVXLEJHvK58gGLJs53xo+yF65kJvkr0BzlH9cqlEbEV7+VQNZvOhzwNYDXLdGwDLL5G6qRRufcjEiz6G6W9 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d02ac484-ea90-4ab8-cd7d-08d561a9460e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:SN2PR03MB2368; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2368; 3:3anuplqK5ueef+Oeh46Px6CpHB8ihy7GYxYStErHe/0kPV2ooZO2jAwSk42Ak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nuKn455Qd+jWW/QqHMGqHoomdR5aXZPnmCK2RMUhAsNKg0QCNAGTEWYfH+lP7928/ox/UcFFw1xR/s+ON7bx9GuWim21UPGV7YvzGgKPx3mwkkZ3zwm2ExWTKVQbxcNw8YtmDT8A4AElyfcuXv6UjetPAar3eixJve4UMgXxEkQaxAWP90ldB4ejVYlPJeHDrmr/X3WC8RILhsdh 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)(3231023)(2400081)(944501161)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123559100)(20161123563025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123565025)(20161123556025)(201708071742011); SRVR:SN2PR03MB2368; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2368; X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2368; 23:fJgSc/AnBu+7Ib+TB2It7YIZGEWeLjL1pr/qzgZrj?= =?us-ascii?Q?JP1TtZfMCkdX6+W4sMsKQVQ3n1vFts+oZLnfO/OmzLXdodDRNab8Su54Trby?= =?us-ascii?Q?aYstObmpLqDC0WwFCA+ZLF9aibefX/1OyJDSDR7ChC7lRyeFW8Xb8bjOtI8m?= =?us-ascii?Q?/grX4s3/8nJB9q+FIRY2A7ZSeLj4ma+IARbZLWZlSa9CqjTeMHLW9YGCoR/+?= =?us-ascii?Q?lKtNT7aDpTdIcS3vy2ytnJhyoyLKBbdOfPcoWkVDC0VgbzlEaP4NBABQE5Yd?= =?us-ascii?Q?05zE/S3Pvi5vlBd+4jG+9tptzgjbOwDKgd16i6GTAbHroJwdeXNDLO8XpDT+?= =?us-ascii?Q?2R3igyXTak5aH5aJmz7ECwZFXfgxYmcEioZrSSo4GrHrM2/PVp9/EvN+IHfU?= =?us-ascii?Q?hf4FzLpqHL84NLPF/1/wkzkLYFNowdPV00u2ZSQhcywl6hej8e7EKHl5dlVY?= =?us-ascii?Q?Zdt9DezupAtmDfW3SYibnOow2kgKskpE1RREN/xTbSmcqeMjaku60B4VJwRX?= =?us-ascii?Q?riaLPNPafuADHCsYBqPWFUU54XJQExDRPtX6gjZwmb/EAQKv2hKG26fNabdO?= =?us-ascii?Q?U7WbaiPQt+/xZYpCUNjqcufM04LFhO9NXJhNUHflY+1O6tY6jelzK7nJDTzS?= =?us-ascii?Q?5XA2JeNV0a69CVVtRw9tvDxhmjJ2PHHK+lMzh6mQwPPbPaltZmgURhljfFyf?= =?us-ascii?Q?YfyOf5DuBUtGWK7bqtIUwItKleJ4cqyOL49igPTq7TgVqUVZiDXxaYUIZxUZ?= =?us-ascii?Q?GXzEn1ZE6wNSiKBqQgf1N5cIwhIP3P+6c25LT6r7UCBLhGPBmHpeJ11hvU1W?= =?us-ascii?Q?IT3SFhaE1fFDxD9QKCMed+dyWsrYd/b7GNYyZ8RvGk50uLRJChJg71cXJ8jY?= =?us-ascii?Q?AT8VHil8KADzlHtoHa2BszcenLamWQQiwqF9RHec60wPkKkKMur78GN8lsj/?= =?us-ascii?Q?SYof/ZW+P9SKCMfiSgKndaIfdlhWKuUTkFfFY1KXMwiC2GJk05l1Sra7FpMq?= =?us-ascii?Q?SG9tMAlP8kji5szWWH9FjWDMP9+ZOh+e7YmHHuyd/GYZb0rEuDc98YdqoV+L?= =?us-ascii?Q?lhjMb0RYKnxgnN3hs5B9H9fMXS6o1PrneoSqMnNVbaDhxjrBPqMWLAQVoU4H?= =?us-ascii?Q?xdANEQvso0cXzm9lHn5e81NzFFoWazC?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2368; 6:TIoYrL7aQoWd7oBuJV53F1wGwCSLkK0Wv31ZhZSuxIQtYYs4p6/O5zpx3qNjL1ID/NQJzp0Mb0jU4orSzexQ57TUr5ZysdaglKax3qy++/Konp1nWnUg8PIhSLjeop7SNfmxLIc3Z6XNRhTsZ/0uJNxEgBzOU1F2gP1YSj59Kr+JOlLXwhn7lZplQBVMzumcMV2d/EuX3Z7fYlal3GvoNJ6+fuM4dC6tpMKeh5cWwAyx/SQU26L4AtpnoI4WRFbKqfSrGgBzl86DCnX1tLbGery1WHbzUwNy4HR3ppElyJehyyT1oKvuPXeC9mY1zEuAnLryp4xJCjm0o9z5MdnNq0+fvkpH4YZl0S1JrPyjOdw=; 5:+wE7cF1eOqReuj7dmRXu6nTuZl7YK2y0i6kgIMVcf694H9albbDQGGfLV2yRs+GK99oAVPZY0Foqb0Ni7RcJCnIPvW18w3qh7IK643LkYIflquxiJrmBCbzwNXunlrYRjHTCnXNqJ230RbVeAyITCSXts0ciZi+QfWnkBl8fhLM=; 24:aGOe0/C+Pfq1d1QSE/UDC3oTkoPnlXSi6vpPZl790IOJXKheWxZ/JeiDZ3oiiqnqftSZ1GyP/zeKpwTxolEi4ExxR7Baqzfbog2fC1lZH/Y=; 7:gbr7iDzxOezxV/K1PVg+ihiVWPMRjtadp/zR7n+SRlM/PCVHwnYTwdqaE4SkArLVhA//Csn048Afhonfk96kDiChilv6VYT0rVYmoXzf098ODnvQ+VL/nqUmvd9XfqUuXLHMZ4/mP5hpCp83U2boqT8tdQQppCIZ7NrmPSYIQHxDkxVxNU6RP3r39ba6hn+e9R+GvxE/Dpn/A9sHaLmCpUOpgY+1nRzRq0UeNsRvky/X/amC+p9TWgkCJeNqOypx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 15:03:19.3195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d02ac484-ea90-4ab8-cd7d-08d561a9460e X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB2368 Subject: [dpdk-dev] [PATCH v6 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, 22 Jan 2018 15:03:21 -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