Message ID | 1516428908-5430-3-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp174832ljf; Fri, 19 Jan 2018 23:25:04 -0800 (PST) X-Google-Smtp-Source: AH8x226y8nbkH3XZKVQxWchhu1S/dQmGms2fUISbW1IjNmSGjWNprL97FD46nVx9hvrpxiGbO9l/ X-Received: by 10.28.138.85 with SMTP id m82mr561333wmd.56.1516433104375; Fri, 19 Jan 2018 23:25:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516433104; cv=none; d=google.com; s=arc-20160816; b=mQUTfkMgSFKUa6gInQGTCQXDA2r8aGyQaUe6Qs/ai31FvsINRwxZw491trrUdKb/BL rb21ZBjXw7eyUrAkc935bJbLxphdyxSl4aNTLPLSoFmIcUew8O+KZEXs+6suhu1nYQyC szOJWowq7UZ7ObkVLxYq2Lij1QG60BjI/japeKXCCIiKqPHsVALHehDIQMBvPK9j3Xw1 xM5znfETSc9PBqZ/kM59K/KIpwTE6LRisIMPRDzUOkXW3kXLmRtZxUmRlgjaQ9q5cmZZ FNMwMvD2OEuLVBsfVCmameKtMwEIQPA7Bv9CYWop6/tqYRdl85Q5VOEn3B8/EBNgIANH gcZw== 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:arc-authentication-results; bh=CRJaJsynPs9xNo9w6mvn7jfMhzILWOZw0yrMGYYsx2k=; b=C0rmsYn5tqV8CoS9c0vycrGcA8Ow8SvM+11YZlchyVWXB1itW0mdFW6gXoh3o/ZJQY LlTPl/hn6F3vUczCn7aXwuKDI/9qZtpy6UsI+SEDJpq2d9APhoMiE59E0ypY3Xyoui7B 6N/5OM1LHKzSVhoearr73wPfV3QIs6vTSJ1N4qWCknIaY/C3UYmXjn9r3GYoMssBQdD8 kFtqmwWP6qPvf/WaxicFqOclGW0BN0IJ/af4NMUxk/9sGIwzOkxC3FuZD1w65q0uWGxY yxyXglMpIR07ngm5K5WVE5YoM9K3Up8fOZumd2o99HdFsRsvueEJokhLFagozJBPhCBt A3Pg== ARC-Authentication-Results: i=1; mx.google.com; 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 c6si1795386wme.34.2018.01.19.23.25.03; Fri, 19 Jan 2018 23:25:04 -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; 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 467311B1BD; Sat, 20 Jan 2018 08:25:02 +0100 (CET) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0043.outbound.protection.outlook.com [104.47.33.43]) by dpdk.org (Postfix) with ESMTP id 592B91B024 for <dev@dpdk.org>; Sat, 20 Jan 2018 08:25:00 +0100 (CET) Received: from CY1PR03CA0027.namprd03.prod.outlook.com (10.174.128.37) by MWHPR03MB2704.namprd03.prod.outlook.com (10.168.207.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Sat, 20 Jan 2018 07:24:59 +0000 Received: from BL2FFO11FD051.protection.gbl (2a01:111:f400:7c09::157) by CY1PR03CA0027.outlook.office365.com (2603:10b6:600::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Sat, 20 Jan 2018 07:24:58 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD051.mail.protection.outlook.com (10.173.161.213) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Sat, 20 Jan 2018 07:24:56 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0K6GGge024888; Fri, 19 Jan 2018 23:16:22 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <jerin.jacob@caviumnetworks.com>, <olivier.matz@6wind.com>, <santosh.shukla@caviumnetworks.com> Date: Sat, 20 Jan 2018 11:45:03 +0530 Message-ID: <1516428908-5430-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> References: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131609066985196540; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(376002)(39380400002)(396003)(39860400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(68736007)(36756003)(356003)(2351001)(6666003)(6916009)(8936002)(2950100002)(2906002)(50226002)(8676002)(104016004)(81156014)(81166006)(305945005)(106466001)(105606002)(53936002)(48376002)(50466002)(508600001)(85426001)(4326008)(316002)(54906003)(107886003)(16586007)(77096007)(26005)(336011)(97736004)(86362001)(51416003)(5660300001)(59450400001)(76176011)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2704; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD051; 1:CbLV5QilwscRMDHBHg9CiJOGExLC05enYpBPWKNakW/uerLn19ms7/7x+HhqW5RxH0lN7aF3lxhjfVkNFpHl26HFMNS+qUHA/L6kA9S/3fOT24XYfknub0zdBOnnsn1M MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 029350fc-f303-472c-2a9d-08d55fd6e954 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:MWHPR03MB2704; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 3:9fZwXoK3n4AtRDFHFNPCID23Dtf0WgFpKP2RG/p/jLcKC2GUCrRk6kxFGbOmZuTWvHEaSwuoPk83/PzcmzpaCSL3r66z9gvSw8T/xDIDxAEFHLBXbRVe31nQESbJlEL3Bfr4Mln0dgv4m2/hjqdaM5NOiYWAAE/Ftp06nMTJ8XhG1TJqQUKAP3r2qPnRA2eh0d6sqTgC5EyAw0I3HbaivInAA+kN/lnLhzp3NBKSrTn1fj/h+Amc/azImNWaujxP5ogL6wFnvwxq1A+o2qgTVnOizZKtCm9UH0gXUxnPEoQWooB0JHSBO6yWZh+pm7/8TahxrJbsVW4m+eF5yjNFqaKmvea341HPI8LqFgqO4r0=; 25:dxV0LQ1RWRm+rJfaWqzA5KUmc5lzkgZ5P7xafyiKFB1JE7ZFooACNGTQz4RNf6if+/r56Jf8XooQNxFaROxI6n0SKmtmfwvvg5kQx4xzwSAesEzu1UJBVotIV8YWjkCBWOoIAeHNTVF5VY/fBrSJZTmZ28pRDFMFfvJvg14gypSz9X7w5X9UPZ9hxLQWZd+uJ5kN41/sYtOggBZsMQuJs65as5Gp5NsfiuwkGIIf+yqlNjB3ahVr5Oyk15LztRZC7AV4QPm//D7Srq15LStSLdyWK0NAZzw2xN27FxxTVeof3ByPJ8vZAhzSbauQu/EVb+3TKWsap5hneYrxb64vHA== X-MS-TrafficTypeDiagnostic: MWHPR03MB2704: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2704; 31:2aUpg0g79es3n9SeMvqeJhloeBQ8hcbYEpyeszaUrJgS1W1/u5o5UaDSRgHP8pcSj9EmiR8X0odJRcT/I5jxE5EltV/PW+UCvBpO0BvT5nAhPwiPQwaZ7LgsTydmW2Py4qlYfxASpx+mx6zbCATvhtDn4+3WEX3/G1q0KI3tI/g6dBggWSmNtbaYHcX6ABX2RJyZvj9DrJ49Wl6hmY8dkeDFGBrPYkHr4tSpftkzgT8=; 4:+gaq60YxagnLSxoZHUDkwEaaLhr+qiUwYcc6+mnQuC6IMQeMMMQRZK2GWoJNRnxLXjNmqfVBhxiu5wLqLzTO701JuKgbO82U2VKcKg81zfa0Ym2PWPN3gkxCEuZ9e0sqMe83t0BG5rAbSbk8RL9NESaRg5JagZAcNvU6vV4IIsvimBx8qWSpJobsiboUZYncIJI9zfHCjq5DeGJKQJ7KFZ088eFEGXef4KyXspCrepoc2v1cwVoqVjrYXnGci2bpx7ufF/tLuReWYqSBR4LOVeXx4nhxi4gY4nGP5oOnDsfTMXu3eVSBNu9zPubLgLBL X-Microsoft-Antispam-PRVS: <MWHPR03MB2704A9FEA48996062107554E89EE0@MWHPR03MB2704.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231023)(2400081)(944501161)(6055026)(6096035)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123559100)(20161123561025)(20161123563025)(20161123556025)(201708071742011); SRVR:MWHPR03MB2704; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:MWHPR03MB2704; X-Forefront-PRVS: 0558D3C5AC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB2704; 23:uGJKAqZVhN1VF0IO89rYlvVGwJ+ja00N8hd4SqrA/?= 5I3kEj5r8YxH8ann7ibX23EOcSfUA/yp7Fh/CzwVvuKQl3xMNuiVS0Aj7r9FzsemYgb3XWbMi6Yg9WpH6c4mxq94UPRuoiGbgQIxdSuPwsAQvyHnX6nS+6jd2ozqlz2nSdvZ0dqeCEYDoI3z4Rky1PiOTaGmMiIfjN6YoWKovUepInOnDQlOljlGhHovOFSia0Xdn6GMaCr5/xh9baOv5vMDiyI8kUbaRBWVcVgyiZgX9puZJ/HKuWBzJIoEufTLW7otd4uh5Mm+ger3sTL0oWlDGVNwDtWmk6LoOO9fdxkck+ECa4WUFzXS3c/2NMtpE6DgYIbrTA3i/lCdN/OJfuXu61EqbUETCMSXnKVnpMd4/oOCaYwt2iTrrmSISZVTI71KIWH4f6TPpTGQAc2756UpMwVkSw61I/09H06W2A0vmbRhbSYjslqI0JKIua3iQLz8MdOcgzPGX3R5y/M6iRNVz60oY+2bK+rWeUThsQF8tlQK9ujJCCfp2+PgvVtQxGODL6GPeaCHWRF2qe1cU+bHae8c6jSvACE+h8D4nfZ4nHjZK4RVc1mG2rnzLs2F1/QghojBHlYexNrnW38RoP8Nd28xBpHhLYc78I5w0kt4Kcw7rmSG0IIJYZy1LHxvJyTd9EmI72Mtr19KjsTy+WzQZs7IoxMFUzMMcovSQbi4LmYs8tKbw3lXo11+Y6BrHxglKExyErjf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=; 7:3NqWAUOm/B59afEV2ty4Wft2uNQzxe0+uZqS6GX/0ssLREshSz3URkWFuoIBWSJIRw3ZiGHRO6uO3WCaviwNfpPD3Ni7olEGWf294E7jMptXI+t9mgkKl+om1SGzhkqV5U6wc9QaHHgDeicorZy6oo7QnAnBKLR0QgCu0oe9uEr8ckFqomXSb0RZ7GQ6peIaHzo04Ml2Rur5JINSzQYK/8UUSzNyfKpChmLjNTMjIADbIYBWAYZzkwE4n6awF6eR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 07:24:56.5540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 029350fc-f303-472c-2a9d-08d55fd6e954 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2704 Subject: [dpdk-dev] [PATCH v5 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
|
On Sat, Jan 20, 2018 at 11:45:03AM +0530, Hemant Agrawal wrote: > This patch change the logic to maintain the value of > user defined and compile time i.e. RTE_MBUF_DEFAULT_MEMPOOL_OPS. > > The pktmbuf_create_pool is updated to reflect the same. > > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index 996a034..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->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");
This patch change the logic to maintain the value of user defined and compile time i.e. RTE_MBUF_DEFAULT_MEMPOOL_OPS. The pktmbuf_create_pool is updated to reflect the same. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- lib/librte_eal/common/eal_common_options.c | 2 +- lib/librte_mbuf/rte_mbuf.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) -- 2.7.4