From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0061.outbound.protection.outlook.com [104.47.34.61]) by dpdk.org (Postfix) with ESMTP id 1776F1B2F5 for ; Thu, 18 Jan 2018 14:28:00 +0100 (CET) Received: from CY4PR03CA0083.namprd03.prod.outlook.com (10.171.242.152) by DM5PR03MB2698.namprd03.prod.outlook.com (10.168.197.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 18 Jan 2018 13:27:59 +0000 Received: from BN1BFFO11FD009.protection.gbl (2a01:111:f400:7c10::1:113) by CY4PR03CA0083.outlook.office365.com (2603:10b6:910:4d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Thu, 18 Jan 2018 13:27:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; 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 BN1BFFO11FD009.mail.protection.outlook.com (10.58.144.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Thu, 18 Jan 2018 13:27: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 w0IDRdIo028023; Thu, 18 Jan 2018 06:27:53 -0700 From: Hemant Agrawal To: CC: , , , Pavan Nikhilesh Date: Thu, 18 Jan 2018 18:56:30 +0530 Message-ID: <1516281992-6873-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> References: <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131607556787424016; (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)(39860400002)(396003)(346002)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(8936002)(50226002)(68736007)(5660300001)(47776003)(85426001)(26005)(316002)(16586007)(6666003)(53936002)(77096007)(97736004)(54906003)(296002)(104016004)(86362001)(51416003)(508600001)(106466001)(81156014)(76176011)(36756003)(81166006)(8676002)(6916009)(2950100002)(105606002)(50466002)(2351001)(356003)(48376002)(305945005)(4326008)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2698; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD009; 1:uHeB0QWj3gqSyCIWUdtkoUZAvfM4jXD795c3rf6ZCPBikOcwug9gosrrvmyTf5yIKAV1yD4eYxW3wd2DzG2VQzyhw++w20r3sI1aLNgJR76odcJiw8YpyZfU8TqhC+Of MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7850f2f-849e-40d6-4b10-08d55e774a89 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:DM5PR03MB2698; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2698; 3:Z0LBmobfArzoHNcUdVfELiSkJgds+CX84N+hqKvJ6Ql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gYGM9nQQuhH0ciaDyVWbZf2o3wcB2ju14FsRnEvFUAOAEJ6Z81iVe77KCTdZd8g0iwlVvKbXsEGNxpgFrkPjMinhRD0XJNzbpsIXOcaUE9BuT9DY6KIZAJBDbnmMUnj7u8iwZWYIjRh3gisQAu3Ui0bVuvqTGehXm6HmhRgMNns2rXM0m/KBF6gg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231023)(2400061)(944501161)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123565025)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(20161123559100)(201708071742011); SRVR:DM5PR03MB2698; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2698; X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2698; 23:dTSd5FP8XUjN+pGrTapOdBEqO+3+IFukxsE7J2vOV?= =?us-ascii?Q?9kEyseQItEGHbT8uffYQ5RBrSK05rjO2m8+3tBu1DBwvBhgwXONRa0MPKlQo?= =?us-ascii?Q?AFbFbIZBBlmpdtBIlmPGE6EKTyUUab4dpEQbzMjuTCpwNAiNEVjzDkR6jHF0?= =?us-ascii?Q?jzSQ0lU88qRq41D3HDyPDRmHLCI1O8vBDCHKHpjduwNzPmt1oxEUkQwKhL2p?= =?us-ascii?Q?udh7FUYTFL+CxEI9iB2O2B7YcnYY6HI9Uz0QyArfzmLM2xqBKy4UpK4iiw95?= =?us-ascii?Q?qZFJvdz5WX8XGyxXFUNykSfamr6OVShPNp8stRCHmoIlBg9ySq+RJxbnychk?= =?us-ascii?Q?WW3VCCYUuGQe20zGOongg551/1nDA4VuS3nenZ1zkugnY7sgBVM71c3NY4GL?= =?us-ascii?Q?Yf3A+tj1Fpe80X07A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AaDxlXhFuq00BEUt5Of3YP+zKZQaZMHmQc8cT7Q+qbz7lkhRLhRMtA9/atCt7xkz07lM+nwuhFg1LLJH/nX35IT4NYeWo+LJwcjizAiu3FEBAG4R4vZ7ry4S8YzlzPqBHM4unBcXsMBoyeSzdWpG3bB1YZeaHV2D4aRvvr5cIffW9TDqQ=; 5:TPDHIjSH4wW0Ae1GFO158sAlcVUhSb9F8RAOoNxH51eOf8J18lSLImvSaTtrKqnxmVwJrSPD7fksnETwe4bL6LW0SDIBjUCPpRc3CLIdkLqGHbc1ojUklgs/uNaQfEl2ZE65ADoqzUtCgp57REaigRskySYeOE/j22D04MsNYlw=; 24:+y78L8X2Fm9pu5ZZmKtyv0u58yNQVJDDxZ0vz+CsLNGxK8CNsdAUUiZGB3rmWN7gEY+0ku5zPOL7WhukaLr9u86mEONco80vj5zb68DsYsU=; 7:+e+dFxmh7fjqcOLDsFY3ag59A0b5k+/tMZiWJUPZGOX++ht1cpz6qSnQ/+8eN/qZAzCOuCPjGG0ekU+cqIK+e2Nn/FsILse5x2DaWGt4kQcXeslvtyzRvCxFPkk7iVYTmkKQ8qEjZi4i+hIj9QQz+t5UW6FPXCyRri6fQf1kyKbxTdzz5VVBpV6mZPJcwfpLiMpqMKeQUH6qxoC0+sSjcyf/UuV2YAsTdleALG0YKO8t0LlLzSNUVB0qlXoYeQse SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 13:27:56.4663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e7850f2f-849e-40d6-4b10-08d55e774a89 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: DM5PR03MB2698 Subject: [dpdk-dev] [PATCH v3 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: Thu, 18 Jan 2018 13:28:01 -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 --- 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..34e07c1 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() */ + RTE_LOG(INFO, USER1, "preferred mempool ops %s selected\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