From patchwork Mon Jan 29 08:10:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 126158 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2236170ljd; Mon, 29 Jan 2018 00:13:21 -0800 (PST) X-Google-Smtp-Source: AH8x2249GV9exnmsK9OySaTGkCOmz/KVjt/X3zA6to33+rNjFgK7LFiDg5uu6qLfPkwKTYVNn5ab X-Received: by 10.223.187.72 with SMTP id x8mr20095868wrg.179.1517213601539; Mon, 29 Jan 2018 00:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517213601; cv=none; d=google.com; s=arc-20160816; b=yCbDSBc/z5n8rWraU38m/aN/+qnNGUKEw477PMlksyGAs4dNbohdcqdon1rQQyR0Zo AIQrDpxupysHEEqvvuieyHGiVuVKKIMpfOV3fv1gP9Su6HMTEyiDXID3X+8ralLIsYoZ U/r9SSvtvQ0gdZ20bsoBGcGJoSUHCZKwPQUOj8g42el9wKaVAnSph+lCPfn5hcnQGHwh jkVnlRpGfDB9y69Vea9ESsPsXszpsFmY354HpWIdODQfmUwQ2L0+UorlBo+ZC/T+PbJd Rm9PyEw8aoUqSkmSf7Fr91a5QVzjuZBUJxeAydhEvmKoQuhsZ3+pv8weRY3n8uaNqSrr j4yg== 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=9HH9fpWFfJJZjlwGreZG+f4QpxsBBQ2d0coJ42ciVhw=; b=NS5A6XTv62sbskilhRYPLRyGy4PTrWWFIMeeeoizZ8kudWPaxlbkcSkXAPrGeUbXMR Yt1iZrDMSHwItAGhW0RSE6MNSIluNYni8HNnNls1N9ImdNfyWHwByYhOcuZD/Ijp7QPA K2ZIfCbvmE5xzQ47uTS/0TggoaD0MLoK7LForGFWaxwNH247o9N1q9ZWlSxEt3ROcV4z DQXhUH4b9EzGLpSmhThxuX02p23nW+E/9NcsmS85Shk5byVcse5+N8rDG0JYcAmwP9oV xF89MuBLNgcx4X3tIuunIYrU/GQRpHFCNF+reoTq7L1kCTDX17+ejqLPB157QKarmuU1 sS9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=hjUCLbCS; 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 j1si9529604wrg.428.2018.01.29.00.13.21; Mon, 29 Jan 2018 00:13:21 -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=hjUCLbCS; 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 4E8381B341; Mon, 29 Jan 2018 09:12:36 +0100 (CET) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0058.outbound.protection.outlook.com [104.47.2.58]) by dpdk.org (Postfix) with ESMTP id 4AA871B32A for ; Mon, 29 Jan 2018 09:12:32 +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=9HH9fpWFfJJZjlwGreZG+f4QpxsBBQ2d0coJ42ciVhw=; b=hjUCLbCS1hcTxtpY9jutsQmMLTfq0QiWfk5IJtW21lmZbxqr48wmJVm9pCe4G2mZDF4s/FElPEletiMnALbPSFzj3gz9dAo9ed8s278R2hJUj09sORdWSvMmcc3QMuEwPCvvKDpPXmwatOvklqHK92TcEDjldk954kk9LtDN1Mw= 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:29 +0000 From: Hemant Agrawal To: thomas@monjalon.net, dev@dpdk.org Cc: jerin.jacob@caviumnetworks.com, olivier.matz@6wind.com, santosh.shukla@caviumnetworks.com, Pavan Nikhilesh Date: Mon, 29 Jan 2018 13:40:47 +0530 Message-Id: <1517213449-678-6-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 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: e8faaade-9a11-4025-b35b-08d566f00b18 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; AM2P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ws+rkjhtwQSW/+Gn4jPt6ZE2yDRvMBXBKu1h+FQ6ef01G+fUN8h0UR2zr/FjOpZbO6W6x1eUlPf9fhuLEfMnVHfNxWaTPIOZmZe3Y3+TxP3BZnLRxNR5yc9LR+mZaPMl8wVcjO8kvdPDG1KGfkXIMp2jiFXkZ/fNb/8o62Forh+mShcymKbPYkJWlMWzoXqpPoTStFJlUQI4G1vthL0wRA5XxICLeLALi5QC0w3eoLI+K9ELDMn7UfvxbdKdcVnizvVd3KDJv9z4LkEpJDuOfFHG7pTHURturcq6aysnpQoDaRxcqH69h35pcL1Lvnugi1NQn0tsNram3dnU5k/vnO0r; 4:RFZI4sVSxdhEzh+7+uVf5edg5ydXW9Lv2myay41QC70nf9pcp0fAb6D5tlolZ9fVm05NqRAwwpEaPbjXCBp8E5dC0BO2U5E0LElXyH9JoSZXR6BjavVLAUqSLaFAgQ6LDQHgcOppIJXKh4F3HTpBCM9+db4+Mv+0OnQYFfJ9wuJUfDCEIMIJqMapFh88lDswi+30BQ3JXd8mlYAgNxFPecXk3LqymXJZQPeqA7/xIc7+92d2BI2yBqRrdJegz/OFRAWv8wtw9Cr8ABhWu32g/iLZRa6AefVHceZFd4jw6QOWGULZyXUYmqP/kjpqHCNn X-Microsoft-Antispam-PRVS: 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)(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:xQQTdg/afNQoOyktJZ0nsTKZ5M7Z8ZQF0d//+WH1q?= E45XFtkuxEv4f+pq/QaQBxYetOP8sX7OrB3QE351+xQxSrEwN99u5tBoTxoGbO487HOLE/iGtN4AGkGYIohbHfpsQ9zx/iAOckAxnkX65HzZl6HJcWb1u4sEeBl6K+3WOIdV0aVqNIGQR03BZw3v1piP4++vwHapV1MssXEve7uGfnfAH7nnTF4SFEtYEQn2GnsYyCYo6m1JBu3879OsS/sN4FL7VOh7B2vqvWL3X0Z2VjiAlzukxhRuzJNjZIP03GOY75v+A8HLxHzSUBd2cYsAbiH4VcSkAVby4WUshndVQi6UCw0a7xamI8vmVAo3nHGYUG90kGWMqYSlEekeZY0Urjja5ugVKwcpy7ILSYUHaiIUJH4ev5igwSS4cjN0M+Cch2d0KxUvNezIdTchQiC02Bn66znEhHfdrx4MCZ9BEiXZdI6XoBSAQRXXD+Jw4RUuMEHFk3WwekO7XJ5TCVrn4wpu/6pgwjiX7z34RVV4F4Bse5Tq7/rkG8r+A4qvg1GPZEiwyJ7IFBzPdiikwNB5ruevoGMpKRChoHdMik9XNehRZE7f0CScZ0HjoaYBUQSsE/22sKOWfz62PwFqCcBIJ7jeSKsahhj6e6nmLvo6lNbYkvj0kc/Frod4r8eZrewscVHxf65ge9hznXwDXpij/SWieP7L+hd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sLVViFbPA9s2pnI4qbsU29ht3RoU3CnlYOajhJdR4JwqsJH6ZdM6uciYQQ+oj4py2F46PaK6JtzvYYIBIPr/QUKvLUs3SRFQkIYZKgYhI2m0lAK0Fv1eyN5er+fiPr3xNNU6TQQEuWqTVCQJEN4q392cRXCjfRBBhrLq30Kpp+RAUL7EF7I+73qZyenN3bCySr2xr+YvVNiwig3yrJk6qUNtPI4sbIzNwNvcCrh43ZDLsoL+1KZnss SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 08:12:29.0271 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8faaade-9a11-4025-b35b-08d566f00b18 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 5/7] app/testpmd: add debug to print preferred mempool ops 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 This patch adds the debug message to print the best selected pktmbuf mempool ops name. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal Reviewed-by: Olivier Matz Acked-by: Santosh Shukla --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 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); }