Message ID | 1517213449-678-3-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2235702ljd; Mon, 29 Jan 2018 00:12:39 -0800 (PST) X-Google-Smtp-Source: AH8x226yyCxru37mj0ZzS/0BdKKJ+oTlFh8SvSmP9tW/znFnN2tfTLK7zzLcEvoXaVwKfMbdw3Aq X-Received: by 10.28.61.68 with SMTP id k65mr16077903wma.147.1517213559686; Mon, 29 Jan 2018 00:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517213559; cv=none; d=google.com; s=arc-20160816; b=z4AmVmXCsrfKADsoIjuRZhdgf0zvgZ4h947Sf2m+VBvMUQAfbW5wSczgdch8iM6AQD Aiyh/9cfyDTrMX/CWnKsfp6SijsfYrPVmvqtPekbf2QTCr+Y2Od/6mNoHQ6/U08rlWM7 YN3n9Hw+MR0ksf8p2Ib5SRdJE4/FLzr2qttNtyVxfvCjvUE7/eOMZ3QVWbBoX7XzmKAw SNqmqXlllMYpszZ9b8c4VcalPGp/aqW0A2+/+Ol8HsqjsISUdQhu8uhhEle382vtWBnt jC+pI410z/0/C3CCZfp2eECSVt1ARt6CEhHrFpXr4ao76wkgqrUR8AfONU/22g6IkGsG JsWA== 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=AqhC+4l9ZCcs0Q3t9OjqMfoRZ7nm/MnXOdXiygve0H8=; b=q2I62ZRRux9LCBgeNpWlv9LB1mdON1AkeeUFW45oZpIHMI5phre+OStbbWdQzqr4Es wx48Gc/BTXVAsvMKuVNuvRqSIPo5dwqoo+s1J5G8a7D127Qu6Iz0eZlITYvrhFPhAB9L awL6d9GP+/yY85iWaquoyyd0guDVMUwb6N8LUHS5QfQMYRbfrzx9/wMDFp2O+coZBiwY 0ozYLQjBB4pSmWpo6smGej3RgjWYYca0DOoRUzGiqOX//HdRBAzaXC9DlCMyKvgSlYpA OZVlRDn7CYqdLwU7X2ZVaN3o087EPe6/gET3h2tQDsirDYbA56kKoEiYb/SQdyvA4KLV h44w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=xeTh44rz; 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 a21si10016729wra.286.2018.01.29.00.12.39; Mon, 29 Jan 2018 00:12:39 -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=xeTh44rz; 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 F26231B330; Mon, 29 Jan 2018 09:12:26 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0087.outbound.protection.outlook.com [104.47.2.87]) by dpdk.org (Postfix) with ESMTP id 8CACD1B32A for <dev@dpdk.org>; Mon, 29 Jan 2018 09:12:23 +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=AqhC+4l9ZCcs0Q3t9OjqMfoRZ7nm/MnXOdXiygve0H8=; b=xeTh44rzN1CcizSkk55OhRa0bPTn/USyFn3Qvf5gKDqF9x4OA3cVo2rKOPKlg1x2ljP2CbMKOSVfaRBd3JojXVf3hvuf5hKYyd+JwJYKj3XCsMu1nVBZ7PYneq0Qf8JdISkSjM7G71UiBSOi90gwohqJ1fgF7kaxdei/G84M0aA= 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:19 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> 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:44 +0530 Message-Id: <1517213449-678-3-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: 63d8879f-e0a8-4992-a632-08d566f0061f 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; AM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d5/pOm+zEooc0/a6xL/j5o0rNezVZSWa9dhHe04eVW8yTuL1BCRrYIrpQjoOtAQ+c0/V9wGq5Eng6XWe11ltyB5x4nMGRQXvldXb/p+RszOldjP6ZGAZ3wzgGJcwWYwqx0uv/qc/gQAIqoORnmd7qnrdMyXsyVdLkR0QGHN4gpXkIbYvg1TLV2Bhk634WKgtLPuMw5bB56h0GDHqPNqK7I4mTcn67maC+HvZk0wePAwEH6vD7ijfpXoXlwR5LWDy/yuKY8D5Tqzw/XuAVe6XnQVX0zavlesS56M5kEUAJNwT5Bb+OMvqjuCDics70ivEeyXWCBNK/Z/kNsxzchF8J5do38Nx+TmJMs2ofUJON6; 4:XSjOeowl2TL9Jw4V5RosRM/S0+Y1TkLp3iUwFCDmgIg9mi+U9tBZp7ZDacs/dFRinve9GoMXONN8GXldZZeW329esIdh5JShEbPPSLi78lnDfQXCYp7jpKIocO3+hk0mdRJEe9ECieWfIYa3dbQZgWQ5QIVOLgyxaF54867nNuDnEuUiv2V50hLrU397YBQSdhUGyDIr9eSBsldscpvvrDJ8P689gEkbnVjytDG5vtLe0a03GfIs0gMSuwD9wuZq/rV/u8NYYD2Nm3aV+2Bv5ZpaAcz0E5RoyvwvjZ7hopi+2kfpkZEHz2xKRiAgvU19 X-Microsoft-Antispam-PRVS: <AM2PR04MB0756AA94968C7B87F55C52C389E50@AM2PR04MB0756.eurprd04.prod.outlook.com> 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)(86362001)(16526019)(3846002)(105586002)(68736007)(36756003)(6116002)(76176011)(25786009)(59450400001)(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:ddc2CCL8vH565v850iedcjraLceeaxg9pM01JryBz?= u+8oiXsFF4KckdeLEg8y/ma6uQFeLNqYhNtKwRJ0XkXdMBh/FuRPVDC0AGVIPVvWmaHeK5Wkj1FsgE2/VbkENpDMJAoRvLiP53ClCH5yR5K8TVb+stRo1/PCpkrzGYTrsAAXi1TPbGSgTDDl+uIfKkj6Vx9VUb7iWadeEvzNHC5jS3oJ5eDkICd407NI7Q8qcYAL4D+kHySCI9mVaAP0VebHhwrvmCiu+9heAFASmGhGqBD7mVBweNP/1xZGMOeU3nTOS6ED7OpCh1p7cGEeNS1xsU2KaKlg522zNr+JKugOzkwTHvveZc8NpPFFv+mSoIEYmOz+ncBygyjk1vcmwXOncQ0HEyavru45XkNyJAliU+duIv40rRvx+5chsy8BnexlMTKdSUFd1baww1VBoatFbJXsmOuXseaFYe4E4EjSm0DXJKnf5ojh1DVZVqpcO0G4V0yqqFf2RJyODcVV/JhI2I9HOUXDP1XQOVWUA5rBQP8SvDR9iM4SKvOB3z/arhr9CYOQYQc/DqewnoCpz5oJrrpLiPLXgmOh7xcUsSDlFtuB6Ly8YHqm1Tv/4PX4yh6VMPjCTxUwksHtnnCD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/OWiQBQ2Kc1GroGRvNpW8uOickEIbNib/ovOIgaPPk4KsQSfoloNW6OaciErxxVMReQ2NtYOlFI4Ng=; 7:ux+sspF2Ppcxa2dcca/bb1nBLWiftPOojNejOHtIx+rtI9buORFgXRf1YYaSd2kbKuOQ8Bo5zfODvtzkEwEa0LBGTv1IsPj1NpIWVDdIQpaDmwafZfRCA2pNHH3f3AcaeeJbvCZEGLyd6YsznY5pGEGN3frzXbmiYD3wMJFj4vGHXpzKZWNHm/Vms+H7EiFr4T3FmjsuRy++pOWusLauPq4W7LzxfAjKQTOAVx47RSjL/nqeHzE7W0f73F4pN2qY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 08:12:19.9966 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 63d8879f-e0a8-4992-a632-08d566f0061f 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 2/7] mbuf: maintain user and compile time mempool ops name 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 |
Dynamic HW Mempool Detection Support
|
expand
|
diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 7a40414..b6d2762 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -218,7 +218,7 @@ eal_reset_internal_config(struct internal_config *internal_cfg) #endif internal_cfg->vmware_tsc_map = 0; internal_cfg->create_uio_dev = 0; - internal_cfg->user_mbuf_pool_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; + internal_cfg->user_mbuf_pool_ops_name = NULL; } static int diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.c index 937fd70..c085c37 100644 --- a/lib/librte_mbuf/rte_mbuf.c +++ b/lib/librte_mbuf/rte_mbuf.c @@ -177,6 +177,8 @@ rte_pktmbuf_pool_create(const char *name, unsigned n, return NULL; mp_ops_name = rte_eal_mbuf_default_mempool_ops(); + if (mp_ops_name == NULL) + mp_ops_name = RTE_MBUF_DEFAULT_MEMPOOL_OPS; ret = rte_mempool_set_ops_byname(mp, mp_ops_name, NULL); if (ret != 0) { RTE_LOG(ERR, MBUF, "error setting mempool handler\n");