From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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: 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; AM2PR04MB0756; 3:OYdpXJ7seiDL+FHdKkdKfcxBZJlKz+aDw913HMId+aJagQbGmeZDp71IoBVVvdBIZy7gbKkKpO5I/qjEbrMlQmdTsXdEnfRcNa6RhPUwTcxiWa+r0A9gjyE4g32wzHHhqVNNsWyDr4PqHuCD9yi9SryHDMDCnLjF+IoiP11XfnQmvNYyD+Wh7DQZNJXV0vC+uoPSkfOADrUTo40NZMlFl0helGh3dCbM9S/I2BfNrDi4snvmpRs+DZmUM+tJBo59; 25:kgU1X4Ve51xkfmDBPfb149xT89jKyObaPuLpjnYGJaWs6QIXFXjPiKBOveXWmsORkrEWtxUbQXKNzt3OrHAaP4MB9dZezx4MuGmUAwX8H7D8f1gAdf4n6YjFalT/4ddLjnXQGJiogrWCuRNnHumYt8SQMyV/50lHaD0S+P7vDtgW9Zfgw26WV4vCj424LQfwgNrGdLuzEtesjxHPysiEq8wd1gm45p4D9UZCRUHSPfGnZtDXFTF69PZeC5QwS4wlCZsYZaSk/egzghlfPwnURmc5hL8nEWAhZ9UYzv0u7O2edWwagUyIImgY48gsnCUDR0uKEdW3GSCXNGzh1GhBJg==; 31:shCzs25AWmDqNnZHGA8Y+rYLCWVFI2uqRaIDrL4odzcPde9WxeG+C8b4Fb+vcLA5+ZqKfaJULFKLyR8PYRJT6NCzLbccAz+jD0noP+An0/xfjq1eS79Xo0scu0g0vahVXYftzB0NI723jcMKZ9nQuuIozWptoOIY2Ug5Al/x8w71C+Yv/39nD/EI19z8BRePjJWOI+QYyzoUIt5thThmAiE+LcoueMKm5130Lk2H9Ho= X-MS-TrafficTypeDiagnostic: AM2PR04MB0756: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 20:z2/DEsvHcLgS5UM7yVCqvYu0IqxZsrT0u85g3AcLnJXgJhIxD6sfq1SVSJL5410kSi3gY5t+QwzBazStw5ElwWqyAhrQrqxHxURoxJ16rdSRMWenvj72/adHazrX+50Cf9wJeT4lUwp20Hx8+8EWtavzmK16l8ITRVH7pMRhws+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?= =?us-ascii?Q?E45XFtkuxEv4f+pq/QaQBxYetOP8sX7OrB3QE351+xQxSrEwN99u5tBoTxoG?= =?us-ascii?Q?bO487HOLE/iGtN4AGkGYIohbHfpsQ9zx/iAOckAxnkX65HzZl6HJcWb1u4sE?= =?us-ascii?Q?eBl6K+3WOIdV0aVqNIGQR03BZw3v1piP4++vwHapV1MssXEve7uGfnfAH7nn?= =?us-ascii?Q?TF4SFEtYEQn2GnsYyCYo6m1JBu3879OsS/sN4FL7VOh7B2vqvWL3X0Z2VjiA?= =?us-ascii?Q?lzukxhRuzJNjZIP03GOY75v+A8HLxHzSUBd2cYsAbiH4VcSkAVby4WUshndV?= =?us-ascii?Q?Q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WU/31knhwjYFVzse73X3cTDsmpk4v/clQYJlp1pdxpVuJpFAJ4vgYtZLSL7B7HNqwgs/DKGl4sf5GIQop+OyRtBhNNwndwwW9xtHAKh46Bt5Jd0bSKzJM4A00ot1gMSNmtKCHGT8KQb8Dpm6OOGRBGW691s3qT1xtOS6VIdhqJdQYegeBL+BlGdXDz51O2Zj1812fVS+6s6WhIw5xZUjHwaxLBPw8ESU7VNBBdkaLInhikrY=; 5:PWHeN6M3xkLFyrPaVezuPGaJH++wWMJ884yLRAfQYmXSpcVOy2bSTA1PCBrn5y9CVWKwB5/ViFd9NogG2tDgH7lI5AMOiP6BQq3yXePYakpcmgO4B027ypn21eUTsCg8If1ban1D7hZXL8zhvcFcSEPWc8mtBe2NVtblbHjjV6k=; 24:i0kwixd0V2/xoCjuXejOiK14VAVza9HNFG7gXXlZhvYApI07SwB/+3jBerb9HF9v4BOPinv6lmAfxUXJiYIkoDQ9jU4PUGXDnb+/dkU5XUA=; 7:Gncr5P1BM8sLVViFbPA9s2pnI4qbsU29ht3RoU3CnlYOajhJdR4JwqsJH6ZdM6uciYQQ+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: , X-List-Received-Date: Mon, 29 Jan 2018 08:12:32 -0000 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(+) 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); } -- 2.7.4