From patchwork Sat Jan 20 06:15:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125243 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp175088ljf; Fri, 19 Jan 2018 23:26:08 -0800 (PST) X-Google-Smtp-Source: AH8x227nN2p4zbwFR+JTeAXph9zMMDYEuzqFuUBIbHU76lMXT+7K0cHAUPYxXQ00gMn1vUq4DVLw X-Received: by 10.28.52.134 with SMTP id b128mr485744wma.66.1516433168229; Fri, 19 Jan 2018 23:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516433168; cv=none; d=google.com; s=arc-20160816; b=ToHOLKbcHP1YN2ssTxrRvwb7a9IxbSKz6B6Eafm67mUvtq7+PCOfbNY7KCVIIBviqi dBjfu70vgvFCrFI6uMzMoWUG6co0ogaDrr95gvNLhCGY4XGPdIYsStHQGvHCcEpHRsjG I4V4iTLBzRWnczr+tAtmkutai1SnfIdJo4BJLrzjv3TZN6j06f2qzVHdy1XZXBGb08iu 7WlYSb+xRmsZQtrvywwL43L7+cAraeRJEMCphsmH1sJXJYIOXdjuJY64vY/+rUrHN8eD C56sTE0XXXULXXL24eCMuDf6fVkucr058pzQLz9V4qBWRGn71gGh3Fyq0Eg+X5lCMe9Q gMBg== 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=fALLTtPT/u4JTQQayCnbgpCN/kJxj7Zm0JDmHvIC1/0=; b=SZP54E9JIOkiMH710bReoIDEItRb+fgJrkhjjwpa7MzzFjORA+N5LSucpY5ARL+kXm 5E74LkJoa+s9yVWfatFu3JZUPwr7muJhL2CT7fYt3puZnB1xv/EEtdn0BrmBa9hqJB/f oV1sD1e4MZii+O1c27Eb2nXJcEN34nPw1oKMp2Os9B7UZGzUfG/+A+j2xNZDt6xOqETX e6L+pHMRCJeUT5OyftZHzRD/IhM4m9Ho6wm89uqhs88Gokn7+xfDs0NF2sFev0sVXw2l 7sTbUaSx/2CYRRkHztcVlychlTqJxGVj1mt1lWJubPqsudUshV5MpQO0hfYRXSjLkfCr 00Wg== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id a1si3833918wrd.204.2018.01.19.23.26.08; Fri, 19 Jan 2018 23:26:08 -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 45FB31B2BE; Sat, 20 Jan 2018 08:25:19 +0100 (CET) Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0087.outbound.protection.outlook.com [104.47.42.87]) by dpdk.org (Postfix) with ESMTP id 10E331B29A for ; Sat, 20 Jan 2018 08:25:14 +0100 (CET) Received: from BN6PR03CA0082.namprd03.prod.outlook.com (10.164.122.148) by BY2PR0301MB0727.namprd03.prod.outlook.com (10.160.63.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Sat, 20 Jan 2018 07:25:12 +0000 Received: from BN1BFFO11FD048.protection.gbl (2a01:111:f400:7c10::1:173) by BN6PR03CA0082.outlook.office365.com (2603:10b6:405:6f::20) 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:25:11 +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 BN1BFFO11FD048.mail.protection.outlook.com (10.58.145.3) 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:25:08 +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 w0K6GGgh024888; Fri, 19 Jan 2018 23:16:29 -0700 From: Hemant Agrawal To: CC: , , , Pavan Nikhilesh Date: Sat, 20 Jan 2018 11:45:06 +0530 Message-ID: <1516428908-5430-6-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: 131609067116355459; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(396003)(376002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(86362001)(8936002)(50226002)(105606002)(5660300001)(81156014)(316002)(107886003)(50466002)(68736007)(2906002)(51416003)(85426001)(54906003)(48376002)(336011)(77096007)(16586007)(76176011)(2950100002)(97736004)(6916009)(106466001)(305945005)(36756003)(26005)(8676002)(81166006)(2351001)(6666003)(498600001)(356003)(104016004)(4326008)(53936002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0727; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD048; 1:3TotR24XUR2qGuDM8EViVwo0da8e8y79wJOsOenlna7/5B2+6kboIvBAO1gv7OjN0L0I7Lp95/jH8c7bYHGABrWy4XNsrOeWZXxawEEBBCowQnFxGohwgv/UDAgIddmL MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1581e7e-4136-46c9-7374-08d55fd6f112 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BY2PR0301MB0727; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0727; 3:dYioEM4NJiQETvDexAf/9Errq5v4zGlAcy9IJdxB99cd2UQrGFSxToWFWw682H0MAgkliSBTsupXuYbHB15R8VY5TsyQSej2j/YnZ5PeghLRqyCwiheAoKYjc3p39oPc8hNzYZFt8DXWuKYAbi/6o5ph/zsl+ewvDcq49OqRkGTRtvGx0uFyNIqB6iismXAczBMhI05jKKRH+EzVlqAImm8rQwhh9b0f5IcispyCVrU4DCkcdZ1VR7fHOYNC6m/EPQATZ4qYQpXtGgL810q9+rMDC2DiS81WvZTtcmp5A0dyjF99cStXiWKv7R2GCJm1grZJ5myLMACSIf9HBSrwNHPe0TT31oQEDvQICi0KylE=; 25:rSrvQUE6QmwudLqLzETHKYhVqZ9gdtZAFiCIabPA+p1IL80YliahCEy/cLnCTCcvQ/sOR6aD0yrRoCdfbFccxk/qghiSONY/6PzolIyImty77IOBUwvpR0Ic2UrSSsH1/NN9i/91+TJWgkOpRunmojlKYboWgqKgzKjr6BoAUbkHpL7kYg6sGHIx5HOBVktz3YNY4vWnbjJJtaRqm4rptjMwJSSC5zMtr1NY5IkbnT/HjtD+Ldm2GmlLyh/sX2dZNhMpdb1NNdFXr7bZf+6yR+S6bvpsqwQ7uM6Q1X1Aa7l295Rd3hx55uW/l9PYFr1mjB/IUhb5H0E9l9ROK7JsKg== X-MS-TrafficTypeDiagnostic: BY2PR0301MB0727: X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0727; 31:rFPO+qEvSX3hohE66YVDHFyxLW8BaQH0P5M7EVMsd839TUFZcX293tvO9blQ89YkAAo3lYQflM37q6dXKzObRxrAsfPIb2XqoigjI1zh7KgZP/tjwCrLF8HEIt0rYtQM0wX1VSX9rw5rBWuuXDCr8OsaxCVXmZ5FDTCYS8wtEJigKnX6EgefvGo0aHQ0PlAv2/XoYNNPFqIXEgh28xJXxKxEeyIPFe/Fiiy9aMkBPX4=; 4:HXdqwqLrJ1Oksu1pY5JblTcHCDAK3HJn/NBpFHLB3dBFVj9RsW5DfkBL2l7U653W+jAQAnCWGMhprOcsRSm/hOrqy1ZL9hq2FMe/KkHRCFLssezwIY9dGnsMjgHXdfCwXrUZWIRBhZqjssiHN7HqvGOKLofdkY3F27kDgj8LfMtjHKhwb45GsK96Q1xx3T3AusCqby7nQXTGSQAjcpIg1ntxIz51jscjohKzQ+ufseqYzIh2AhpgIW5+uoZS4JOvJj2wxdkgGsgKZ1olJakn0DWvNhNzRwiZJsDHiUTWX/P+dpNLmNVrLsLDhDMJ9z0b 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)(93006095)(93001095)(3002001)(3231023)(2400081)(944501161)(10201501046)(6055026)(6096035)(20161123559100)(20161123561025)(20161123565025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123556025)(201708071742011); SRVR:BY2PR0301MB0727; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BY2PR0301MB0727; X-Forefront-PRVS: 0558D3C5AC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0727; 23:MOARDkp/TXoztcnogaM8c1bmm74jrtCPiK/2bBD?= eSGt2ycX3EUYu3eXTcOskY5w+iPPTnx/bNzwMSmn3+pxpiuxM4C8RhoqZhhwanM0CQ3QWAKbqjzAbHapLYCDVirlQI+JN6HLNsgZganAS+UHm0XJuA96fGy5MaGQLRAB1CQh3VTNk0JhrD5jqqFM0Yg12dgGLV4CyiZ1wVhL2v1z5BTevTT/BSWXyE+g5C30mE5J9t1BryxBx48N+G+ONbAB+oYYF0MsvFc8tfaDvqFl2l+7bRqQRAU/qjh2Zy+OgFEiist7RJ+D+7IF++tWFvkNGOJs/nljhzFVgY6Wz3Gh9VRz+C3dAR9o0g+iDUPa+Jx+FPfpEkcnG79OmKw9jO6JksX+yLjJns4HvZcfustyXBjyRqvm8eYOC+NBB3g1rxhiYrSWd5Am4KSaYAlN4kbT4Rq/nbtI8OL/bW1OxV/VJxL1FocIObE9kPoxPdHOTogivToEwgPdH6lOefSaQPJMesYrEcwioakmgFf5exAEX7A8XwMWosxEeJT765Z2kRjN1jXRBNHRm+Jt+uxxsKXkYQNiq229kqSGs1ZfqH69lA9DqPHOEG88K29P7fskilXEM5kNa4iSdpElZzUvwWkLqv6xAsPzsvhEg4EFusx7qJjy1BjnF9Pauoeaw3fpn5ZtmB0B6xpOvIbIjCLJqtqjUXijO+L33QxcK6QxM5gNPkIV/vmTI+xhaKZebAPO3ajNgNS0N4omPnUPkhgwxuNsSWaTiyt4i33SMLZ7I+n1Nvl4CRPxYFtDTNyAllMlMeI1wPcLCW0jqiwERXspvXRSr0uJZ2Vm7OKWemDH3Hb3stR2/vzR7LFgrQYWn9kv0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8o/syCE/BkSdPb9DSS63JCxwPluqYhH4IEfwbqiyqB4BfnzP2TqVPburGuPIRDnBDOBppFvTCeATp1lCAsDRj0R7KAkdHOt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 07:25:08.6093 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1581e7e-4136-46c9-7374-08d55fd6f112 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: BY2PR0301MB0727 Subject: [dpdk-dev] [PATCH v5 5/7] app/testpmd: set preferred mempool as default pktpool 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Pavan Nikhilesh Set the mempool preferred by the ethernet devices as default mbuf mempool before creating the pktpool. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 Reviewed-by: Olivier Matz diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5dc8cca..d8ac432 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -499,6 +500,8 @@ mbuf_pool_create(uint16_t mbuf_seg_size, unsigned nb_mbuf, rte_mempool_obj_iter(rte_mp, rte_pktmbuf_init, NULL); } else { /* wrapper to rte_mempool_create() */ + TESTPMD_LOG(INFO, "preferred mempool ops selected: %s\n", + rte_mbuf_best_mempool_ops()); rte_mp = rte_pktmbuf_pool_create(pool_name, nb_mbuf, mb_mempool_cache, 0, mbuf_seg_size, socket_id); }