Message ID | 1517558582-27108-3-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp406191ljc; Fri, 2 Feb 2018 00:05:09 -0800 (PST) X-Google-Smtp-Source: AH8x227DAnSLvrK8N3Vtlw+mFkWQhbWp3i4Ty0/Ov8pZxWVsZIosmRNWTYfLS7q4RaqcdRo4s+vM X-Received: by 10.28.138.85 with SMTP id m82mr18196046wmd.56.1517558709880; Fri, 02 Feb 2018 00:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517558709; cv=none; d=google.com; s=arc-20160816; b=dfxFkEicpR1cY5E7s6dW3ue0OKCGLoiUyz7eG8XqZ1OlUaskSS7uxFxSjSruCplB+5 ki7mk2xJ1sqxpHinLUAABQcoZRwnvJ1aW5F2nolj6/N9wSCguj3++H07SlULdh+eFNZh dE9BAJG2LoLAGWpBjF5yE0hi0qforx4RIYGffxYEWQiPYLQxTZkgNETtLxwU+l6Xi+eH TfmBFwHhUZtTJATgx2bpevWsl/uxa111lwrtzU6CLYf+UiMPhvMe6XJMAsNaLOpIBCe9 bzWDcXQf4X8V0MDA3dTSW0mQpLoECW9zOEpF1rzcOr1mQwQ1xkTFgLGXYUH1Oc6+5JJC pTVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=JXkrfdoL9LXM77ACXKo+SYNAn7tWf1l6EOM/QlQDi1M=; b=OEPTbFLCSzySPXLjN8BoMiMVMFzeGUUGiBsBJMa2+OGDtFPYPQR5/xon3W0APZOHrW T/9AmhigUqSCtnm1RdHqnIYP09gbXVjeRrOFKwHCoEj6vZr0NjIsP0mVUMRMjPsPY0Ay JBenXEQMxv0yTBdJSKdLCW3IxnkpMh8efh0q8dpSA4dCXjYdpTPnR9Q4jTERIyXJI8bb tlQWF79TSXRfUdYrVijQuC5ROa3J7++LzYykzcZGmo16X/7qSkGObaQA0uKOSqAKeLqH Nre/2znAQS+IXXWQkRHRXzQj+rc42Ww2jHgISI4kpBlTQg94+pUYEQDEn2BgO6jsq/g9 YB1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=OafISt5Q; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e128si757267wmg.160.2018.02.02.00.05.09; Fri, 02 Feb 2018 00:05:09 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=OafISt5Q; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 569081B171; Fri, 2 Feb 2018 09:04:49 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0062.outbound.protection.outlook.com [104.47.2.62]) by dpdk.org (Postfix) with ESMTP id A8F29A48D for <dev@dpdk.org>; Fri, 2 Feb 2018 09:04:46 +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=JXkrfdoL9LXM77ACXKo+SYNAn7tWf1l6EOM/QlQDi1M=; b=OafISt5Q49y4hgBI01ft5UM8pbwPLNDupsBFS3oImptm1VTI4ZLUpwznblIwbsXjaGgq2+ya4K1L+ZEUMNzOCCjn4DIJFh0T4fJXUJhDyy/1cQxrgZ5TmVDw1XJyWFtVx6DOJeJYS503IfCJly2faCcyZe5jAo9NwWTX9PwmVjc= Received: from bf-netperf1.ap.freescale.net (192.88.169.1) by DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 2 Feb 2018 08:04:41 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: olivier.matz@6wind.com, thomas@monjalon.net, pbhagavatula@caviumnetworks.com Cc: nipun.gupta@nxp.com, jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com> Date: Fri, 2 Feb 2018 13:33:02 +0530 Message-Id: <1517558582-27108-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517558582-27108-1-git-send-email-hemant.agrawal@nxp.com> References: <1517514427-28843-1-git-send-email-hemant.agrawal@nxp.com> <1517558582-27108-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: SG2PR06CA0087.apcprd06.prod.outlook.com (2603:1096:3:14::13) To DB4PR04MB0768.eurprd04.prod.outlook.com (2a01:111:e400:984d::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2dbcb2c2-ca9b-40e1-5f47-08d56a139e8b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB4PR04MB0768; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 3:pdtm/Qye9JvHIkiVmSWCtMjiQyBvNHkSW6rF2rSrkF0LlrhGOF6fNEXb9ncKzwJIrNeOVGMSM0gGT0ijaCK2Ano9fv78K9zUqzZNtWhfdXlLrRdXBISFYHUP52u/wq2nmfSqCvp1jJPbt5vHLwbsN7dHqIG92SnSzGFerd10TdxUZEAABMSvVe7jg6knfu0q4wkAs3ZIyvmjRKEYtlEhkqDpP9ozgLIzISDgmMEKulTfOmmNA7QEwf3e+/2/dM3a; 25:fP6vDZKMeknPkSBf0qq08QGpAnmKQ2kERjAWR6nsFl01+RDUaMGKvuB+mUH8dOxkkFQAKuev3rXGrDjLa6gTJCcUevh8gASxBg8h2SphxRNF6jlCLeWg4rN0LzWZVkF07poHyN2cSfYkWGsZ6pMhZgHLOjHVnlthOpGL5IqYw6Aq+dKNEcA4uxs0HpRa6FLSzZd/qC8A/DKl5tQOlEuFQH8A0Spt8QGaW3BYk01ihq4lG23hybvVuiTy+SKTvvxQ1jr6ufI0xWiCAQMHOApk4WXdwDCInUJ9WXEvZiKoycuIFKz+ioFzejR/2AMtsw4MvgjoQzLbXtkE2MQkiRuEMg==; 31:aXHR+GCd47ksz41Rg4RKqQez84G8YK6M1CYuiuWU7WhFK3o3woshXCEWQlkjKGozqpcZKme5Y7x/JaziTeWjtaRNiUOczleIe+8K3XbudWiRCJoW4m+fjjgca0p3lv4FfQkNXfCOMDAsJ1o9hKAJVzUlhDsrVSj8hdT2810LpsjIHQwLOanI28bLeBCdpdE5dgkENlhD2wiRa4Q43NGwquUtmpqnCIIvc1WRhVUSDrQ= X-MS-TrafficTypeDiagnostic: DB4PR04MB0768: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0768; 20:HKH4How2fvpVsFZYs3vdQVBr6u8U17ShbpbZleifsko2RkZn5WD7+V+5oZq3MINWsUWCNhZOyfnSYT7LbOOBi7ZyTbJuG9NC2LMkHf7QLbwnUnNjDis3J9eKXK48eEiwFx0mtSw8dR5ihUHD7ShnY9d7D7luGZqJfZYEbFRZL8XVoccJPUnhfQ07duqwBXiXh2YtH/Mf2QYFidxjB8le1XkDRR0b1OoITyOzSjz7myEUscuUhNQd+mf1hgVuYVzZVt8bxBLuu+Xwi2fbCKlIeEqIonXWNgofdKeHxY/Ps//Gv+J0+V4eIcl8sDdD4e+oGCkMp8lxB3bMSfjw6u1dWtY2gPFrQjg7vRKUkABldrIKjl7HLPVJElnHmaM5ity0QUheeerPN3FiwARUogrGtH/cbbcCAaziVKeNjDLD0/z/GaKnO8UKIBSWqwXvs+RAsG4n76lWVgJrmbmEun/3q9jR6+Ab8mDiiol5ti3sJsXRQ6+R7AT1xJAQtV78yBCj; 4:DsNseaKMzQcBA5D4GkEezVkUjZRD4/UqGyr9f0CieaQHsRNjQ7zKxp4n/RqoqNvcwafEe5hlM8KKkhcJlJtcQYFrKYVugbOrnUPCNiWKvD+iwWzCXIHVreoV2ZSk83IMPYnMfewypkQlK1CQSvEQk+VhxsL8wHN+OM1gf+4AIgcIJ6+cFKDCilc1q67kIqc1qF/TJLBgyCDO/a9Fq/exLDHzrka4cg4A8v1JjZX1la7+68iiEWhBH143cieKLlzFGFZV7Kd6E35Kuqruk6rkIphHHWqIgBiPfsjhrAZvW838KQhkYJ/Dd/L2Um+wxlER X-Microsoft-Antispam-PRVS: <DB4PR04MB0768A97E91A8A0B20B29CF0189F90@DB4PR04MB0768.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231101)(2400082)(944501161)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:DB4PR04MB0768; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0768; X-Forefront-PRVS: 05715BE7FD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(189003)(199004)(6512007)(6486002)(53936002)(478600001)(305945005)(316002)(16586007)(50226002)(25786009)(386003)(59450400001)(106356001)(6506007)(8676002)(51416003)(81156014)(52116002)(81166006)(105586002)(6116002)(3846002)(5660300001)(4326008)(2950100002)(76176011)(2906002)(8936002)(6666003)(36756003)(66066001)(48376002)(68736007)(86362001)(97736004)(47776003)(186003)(16526019)(7736002)(26005)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0768; 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; DB4PR04MB0768; 23:1tkyGLYJHGGEbXxAZOas00bOQBiK8f1Md1/24rDi/?= SaWOLO9yCvwA1kyPwHLEL1KE4+lQZZhcTuqpUQYxi+L7YcyK5j36JY0PFp1aSWDFKf+n61WSqyhnNwKuqhJiPEAJnXDG2g1Qcxr2Lh7sQMXPWcKPKU31Pc5cBcyxxLJjy5W1ZmQXsdH2B12OXda3c7m0oBUI6X+WTiE73GE6iLiCb2rkAYLWbg3MjCWRR+B3DMMKBCIIg3gSfX8yZVHANR+ibx26TVcnmBwXOyveGPY3iRB91Cb9oVYrFiKGB4ZnXwe//p3ujvn1fuAwGmRFZLhvHF4DgkaBnfoD3ihH9wRpZKvgvCjP4dympKIKZbCq1MceR17IiCSV+8w71BJvWjsl0Ody6HrbmRhucFPgoduQwnpRiMPpm4fCE7ugV9ZG7zJc/EmqWiUXfvfQzUz+GdobNbJQ2Zq90LZmCe+5QGzs12cHEsC+CiTE5vSXGxMadoJXi3D14LBz1P9s3oY/9F0+uRlq+harOnVfct11Wk0KmeAwq8J/WRddOPtF0b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8/flFqoroxr7HwrHebw7rJSifYnag14QpC93/AOIOIafS7beyeC20nDVBAnSXCV3X9A=; 24:9ByM5Wzwp+x90GhvAlzmuz9HhTjrmnH7oZzZF49e/5XYHFYg4u4l6hOYs06UWFjoub3I/bWTwwbnS5dahnRRGxvxeCG2TCweCsdU/2MyAbA=; 7:f9kWaZ8WCS8ytTuONKGmJ7N/EHc8DLe7/Y9hFagwiv1YqHZ5kAxu8vn04bWm3PUUTOHeU/2KwD50bva1MGU1TzOw3fXtRprbuZwtZR5zIPgwOP7TRJCDtow1Nu/GHu5czZ//Fu6WDk9wlcn3lxuYtcxC9/qbga2+diXSsagYCUAH0fzaAmH1ivmFtYoXWwRLSao047rtH3GCO07QU5mZNd51fwIqIzaHIQMXsKDqXOnyrmgJDr6klJxneVeA1pfh SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2018 08:04:41.2305 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2dbcb2c2-ca9b-40e1-5f47-08d56a139e8b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0768 Subject: [dpdk-dev] [PATCH FIX-OPTION-2 2/2] mbuf: fix user mempool ops get to use only named memzone X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[FIX-OPTION-2,1/2] eal: use named memzone to store user mempool ops name
|
expand
|
diff --git a/lib/librte_mbuf/rte_mbuf_pool_ops.c b/lib/librte_mbuf/rte_mbuf_pool_ops.c index 385fc43..a636c28 100644 --- a/lib/librte_mbuf/rte_mbuf_pool_ops.c +++ b/lib/librte_mbuf/rte_mbuf_pool_ops.c @@ -74,7 +74,7 @@ rte_mbuf_user_mempool_ops(void) mz = rte_memzone_lookup("mbuf_user_pool_ops"); if (mz == NULL) - return rte_eal_mbuf_default_mempool_ops(); + return NULL; return mz->addr; }
The eal default mempool ops API can also return the compile time default mempool ops name, which can break the best mempool ops name logic. Fixes: a3acc3144a76 ("mbuf: add pool ops selection functions") Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- lib/librte_mbuf/rte_mbuf_pool_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4