From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 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 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: 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/?= =?us-ascii?Q?SaWOLO9yCvwA1kyPwHLEL1KE4+lQZZhcTuqpUQYxi+L7YcyK5j36JY0PFp1a?= =?us-ascii?Q?SWDFKf+n61WSqyhnNwKuqhJiPEAJnXDG2g1Qcxr2Lh7sQMXPWcKPKU31Pc5c?= =?us-ascii?Q?BcyxxLJjy5W1ZmQXsdH2B12OXda3c7m0oBUI6X+WTiE73GE6iLiCb2rkAYLW?= =?us-ascii?Q?bg3MjCWRR+B3DMMKBCIIg3gSfX8yZVHANR+ibx26TVcnmBwXOyveGPY3iRB9?= =?us-ascii?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1N0iKbr+aK3VIr2PBjra2C/nyGpZmWYcn+yvmypr4NLJ+dJpyhJGxS3/lY6BvJxsWCQH+es75Xfc1FgLxoSvVgPEh+LWuOP5FBRDmHIENm4hsW9UgIeY3JnbwHRgNodXtZSm8gNIEdX3VMHInvw3QITUBRT6hp+ov96q7h77VSXaQ0FQJoakz2JsODa2uw1sIxYmnGYHMoqcK7RhaXQyZPEnF4o2sL7Lgw+e1+4uEHdEevzrkcvd4gx69gHwUMehUulpbc55R3PSsfWoVLWhgkW+IvNyn9vD6L/AXCDXhMilqqrSDbO+0A1U8gomoeTHcHUjrtH1yJLe8r/irOPi63nVmYHcU=; 5:Jsn0b4bp3GVgVgsZgK33xrl0z2ETg0ESGcofrJDGyqxjGG2ad41EYJQ0QqO6EpF7zxqscsnbVRpqSz5UKs6LJmAIv6Hb679MDLB8+LGQ8/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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Feb 2018 08:04:46 -0000 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 --- lib/librte_mbuf/rte_mbuf_pool_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4