From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Content-Type: text/plain 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/9Errq5v4zGlAcy9IJdxB99cd2UQrGFSxToWFWw682H0MAgkli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dfCwXrUZWIRBhZqjssiHN7HqvGOKLofdkY3F27kDgj8LfMtjHKhwb45GsK96Q1xx3T3AusCqby7nQXTGSQAjcpIg1ntxIz51jscjohKzQ+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?= =?us-ascii?Q?eSGt2ycX3EUYu3eXTcOskY5w+iPPTnx/bNzwMSmn3+pxpiuxM4C8RhoqZhhw?= =?us-ascii?Q?anM0CQ3QWAKbqjzAbHapLYCDVirlQI+JN6HLNsgZganAS+UHm0XJuA96fGy5?= =?us-ascii?Q?MaGQLRAB1CQh3VTNk0JhrD5jqqFM0Yg12dgGLV4CyiZ1wVhL2v1z5BTevTT/?= =?us-ascii?Q?BSWXyE+g5C30mE5J9t1BryxBx48N+G+ONbAB+oYYF0MsvFc8tfaDvqFl2l+7?= =?us-ascii?Q?bRqQRAU/qjh2Zy+OgFEiist7RJ+D+7IF++tWFvkNGOJs/nljhzFVgY6Wz3Gh?= =?us-ascii?Q?9VRz+C3dAR9o0g+iDUPa+Jx+FPfpEkcnG79OmKw9jO6JksX+yLjJns4HvZcf?= =?us-ascii?Q?ust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vICfZ92VatdpF8Mae0cH300bfoLfHwey2klSHdNEDGERY2vnCp99HlDZ/e1cwkgDI88YutvtE9cjxuiiczm3XIhK3bp4zRqpaxYOzTUci4bxIt1pCOf8N7HM2DBHwNHTh79IxTrVglnpnA0KUoYcMdj/YlThaADjHDdifAS+gCmx9gi9agxuIqke8fM=; 5:lmuCFdy5M98kwYGA0rpcO1ucfjaJq6gXvB5kvwebppNCpCzlMUmTuZD0dnXSOe1PRy6BcjAJjp29YxRePxkQBKODB+gZY5RTibRjaa5mfkNmXYohfTPRmigSv+p8LtdQOb8u0XDeprlAxWe1AuYWbmBeA28sAaLoyCKNH6t+ZQU=; 24:61mbY2fBapQpZXsDC8bM7uKGuNhEvWl42v3irDWtwQFpmpz/2u3UCnNETGbJUDSbkowQ+/Cuwyy5vDI8v8dQp/ZMTFOAz/qYhNe7D2pUPvY=; 7:Y/qxl1hmByKsZPvJmlGG5G2HeUAeI1zVHPMhmtUvYTKHpapWlY/3AUwChTgydyGNBWqnm58QbuO6J2TqThQLwCuBezsSPc3KN78TGDmmqJYMSuHqwmbZXf1KOc0wJQjmVYGgnuEVdUKXuHzt94XDvd61JeKgG3vPT8o/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: , X-List-Received-Date: Sat, 20 Jan 2018 07:25:14 -0000 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(+) 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