From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0059.outbound.protection.outlook.com [104.47.38.59]) by dpdk.org (Postfix) with ESMTP id AE89F1B2B4 for ; Fri, 17 Nov 2017 19:07:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BLhFx87yf7kkQHoAzuGSMPICXueLubRQhr3NVe9xZo0=; b=BOoUGxFFtlRqZfg499CzrF8ZIrex1wxRDUv4lTco8kK0uokRy10pq4D08dWcx/ok6q4+VgOcDDdMbv50Oyf5DUOsBhIjYO8xrpGa5VvaXHChrHe6a/RPKz18DJfKyN8h2vuz+wvXLuPjrnhtbDwVh2rCEYlLlQAxcXp6xsV013o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.caveonetworks.com (50.233.148.156) by CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Fri, 17 Nov 2017 18:07:21 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: olivier.matz@6wind.com, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Fri, 17 Nov 2017 23:37:03 +0530 Message-Id: <20171117180703.4085-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: YQXPR0101CA0050.CANPRD01.PROD.OUTLOOK.COM (52.132.74.27) To CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b28d9ae1-9cb1-4900-c5af-08d52de60cfe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258); SRVR:CO2PR07MB2520; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 3:TvUlog6csMQmzc3F6O2A+eN69h17dYcw8uak5ADeGdz8PeCBHJdz1pxQ0OMjIke5XIuGDdE5733inf3zbw4RTkEk2Sl1CRkxt60ZseuA98F/2zp4ONLknS9ROatKEiwAh3yXRTOsHdhCCXj9sMZnRejfLqE/jFDy1Q0hW2S24rkK/AXtrupazW4DfgwJvoRbVdvGCG2S3z5eLPjJSWF1RuQ9W9M4YNLlFg3kY/a/+AjnsfXVVMKz7+RoPdMHAlzI; 25:BT2gyxuvKof72rSYsNbDf94/ZMdokvRrVL9G4UUT+39toIw0BtNxIX0MedagPfVLXU6kI5FpEU/YvGHoIlFkXV9AgrlVAUEqKkxK5Gxw6WsE8PYhI0M5wRXF61pAtyr9+fDogV6Ckfu4R/ITaKzo6iCTXgJg5GOeICLViaRmphu/eSyap9hUKFXXCEOHyd0ppsHuvL8zqw4v36VqoQdAzWKl3JOZNxM/tzy/jHH/kRYtwIbRCNqpyEzXPAccPijBPd+3ueitzL8Ae2R8H3Y9P0R7eI/kxHTg2QSStyIKt15url9vbDgnPOuSVHNKsIbVOrrMGlEHr1okxQxpZde0Rg==; 31:F/Ca9zvJI/05ehY1SKZrs5ftfjh4NZHwiVpLQ6CQSfH4ypv44WfgMHHoDyqLrOx83fvQH5ZjHWxyUEeQ4bV6Msf+3nct21ZyQA01kABGB6ragCVHRxbl/z7UrGsi3sXJWMzWwtTWKBohc9Gx8ffdU6/IZ9KWwl3V91OB4VBTdhzMhMce+L4apv1OqvolupmLrA0XEmT21MBeK4ge31xc8pEYHclzSZhJinRvzMsXEVU= X-MS-TrafficTypeDiagnostic: CO2PR07MB2520: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 20:sjtvLVv9eFA52GkQs/3auhUt14YgXP457kJ10oQXBWWbe8gJNDf2EZjIIvjjb927eDzqaty0wBXHUlntaDpxLQN/ViDDKcZObmhoRKoy7S/alwClG7sCSosUqhjAtKgveBAorjlfLHe5aTlW6KjzNwkV7yUNxyH4g3qtD2SXgZfS+xsjCUy7raUS/GikWglvitOjZ0EuEobBkvoH56risr5fuPt4hY21BXVeitqNV0jPDKB+j/NZl7NOEQ5Z0JFW7dvr9/DFyI9YTkRXg7yOpdDgP4aljUfteq3yvi0V+IRq2+EeRwgLf6JwaSeWhHwAp+1PJrKG/CeCfdvqAb2l5tyVJiccXziUuu7z28SqO0vOmdSzc8orj2GTnI+WMmNP4VqoCUJFbhC7t0LA4PE6wLPHYtgS73YOMefAdyMB7e2pdcCaiBCDnUKjn3hUtYTjquaXd0nhYgKfo7mlgJXD1TQfIHXUDICC7vG2Yg80SK+SCpOB3S9d68B+KzLsAvR/l0NFZVdbqPbOHVG1Mk5MryYf/f03CAcH+oWh/i2t6cFTfhoX8zKfu0b+C6X/xDRRWmjEllPRxOqg/laH0T6mXE8MK2I+28WNjKmZKt+tiWY=; 4:WREzkqGCmKsESuL8koWiHeOWZ4p16n/gEBJ18fY3pReZq+VfrjPpfMFq37j3JAck/+Loug02ai6DLaCChOC0C46BE9bJ+LrgYPudzKS+uYk9ATj7EpiQ2CiFpH5FnOgxpngznEdWB3nqHq9QBIKt80ivnXxrf34kUZs9dgg1r1lwhA8VinVXVX7kjdp/FS75eVqd5lz74TCZSRIVYjC4O2ZedP3c36Tbp5FYNpkT+vp87qvk5jHEsircsmxGmMPmOeRPhzzf/QVb1oI1JVDgxQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(3002001)(100000703101)(100105400095)(3231022)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB2520; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB2520; X-Forefront-PRVS: 049486C505 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(189002)(6666003)(316002)(478600001)(5003940100001)(3846002)(105586002)(50226002)(33646002)(6916009)(25786009)(16586007)(81166006)(1076002)(16526018)(97736004)(101416001)(42882006)(5660300001)(36756003)(6116002)(2351001)(2361001)(72206003)(7736002)(8676002)(50466002)(6486002)(53936002)(48376002)(305945005)(189998001)(106356001)(81156014)(8936002)(50986999)(107886003)(69596002)(4326008)(6506006)(6512007)(53416004)(47776003)(68736007)(66066001)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2520; H:jerin.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2520; 23:ZE2+0xpe5WTl0cwp9W3cbxWpmLKvgdnIZKIaAFayD?= =?us-ascii?Q?DGWz1iIFCA+rkmRL+vBtnxWFn+8tQRneY7F33a0u6f1IXIQeuNK22bnt0Jyu?= =?us-ascii?Q?qxHej3iVG1scTKkxzt45V4zytNoQtiIeoChXLSyrJNFxY9wFavYMT+qsQr6U?= =?us-ascii?Q?Gmb+2A0UWjDZiRRIVpiDwT4+YMsdtSGethaImPSvXjoqygIE8u9nvt6TwOrz?= =?us-ascii?Q?yg7mS33I4qVRUf5WaqAEXd4enjpQhbHuA5jZAWKI0AJuV1BjT1TdmvCxL/vY?= =?us-ascii?Q?SGWaHbKQXZTsFAtlAmazT+dmgJHxNpVdHbqOM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CO2PR07MB2520; 6:CG2d36HDHzKLg7JtvghV9OXabjVRUHPawoTJEHAW4jJNSuQggqolIoUmAOLCz2fDr92I0i8um2jpAB6Gzzsu0yiXqiZIRMkcNge7gj/UcBjxRAptVafpQFb8ptgrk72A4G1Twbp/9QBD2g+zLVn3s8mqWjlHRvbD5Z+btg6RJMRVva9ztmugd1DVjiU5qpoh+Rt+HaxIGX4zdwdhak+0B8GW8x1noPfc/nlJgR+lJ5+BP6oXHQVQCG8sw6IMTz2wm2C9guYCg1kTTxQ2yvnmZPg0Ykbnbd1HiZhZwDkTvehaNr2QYV/ZJESAjjh0gstS4ZnH7YmnZXgZgdtMIUSSnIV+vuIMfZiVZKdd69uEGXk=; 5:7WwlU1XuB4YFEC1OGrjXfp9RLOpwJACt4/e0c7gHDkZpvsWa/P13nt2OnZUks/XJp2ksUskpo9VQE2SknKle0p7aWpJRt8Pw8ghB6zg77OqPiUazuJZjeVW2CATG7VqAeKKhSfrkkbVbLKjp+Z+XmCueGKmcXSXA9RkEZHFIy7U=; 24:IvjCWX5htR1ceCQFF3nHbJ4pse2rdpQppaxhaWwzo4dS1Q4Q0eJe7WgkK8coU9sGGLNkYMLP/wfaj6JBEPAAks5CM9t7Jq0YQunLKrDJ1VE=; 7:fBLmfnMcc+GrRm2DGXtg+t/M/O6o8C3XuLXzS1jIkcOHRqmpvb6TGd6aXlcBZRWlAITtszRz43IDR6++79+ujmvuKJ30KGfMJ5sZfBfnr7TwlWNa5+wDycJf8vPdQLwCN/XSqmnxRXWj3ZIiQUoDHKV94hZTwPD7ODa8G2uzlgeWrer0vLMe3NycWUXYeJ/gJVS2YJkWBBaxBNT3aNf8Y/qUw5RzNSYh5pp0Oj5cA6kR6NEUj1lpzSF8ao+tSzJG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2017 18:07:21.7482 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b28d9ae1-9cb1-4900-c5af-08d52de60cfe X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2520 Subject: [dpdk-dev] [PATCH] test/mempool: improve default mempool ops selection 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: Fri, 17 Nov 2017 18:07:25 -0000 Use of rte_eal_mbuf_default_mempool_ops() API will allow to override pool handler through "--mbuf-pool-ops-name" eal command line argument. Signed-off-by: Jerin Jacob --- test/test/test_mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index 37ead503b..46eb5ce06 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -565,7 +565,7 @@ test_mempool(void) /* Create a mempool based on Default handler */ printf("Testing %s mempool handler\n", - RTE_MBUF_DEFAULT_MEMPOOL_OPS); + rte_eal_mbuf_default_mempool_ops()); default_pool = rte_mempool_create_empty("default_pool", MEMPOOL_SIZE, MEMPOOL_ELT_SIZE, @@ -577,7 +577,7 @@ test_mempool(void) goto err; } if (rte_mempool_set_ops_byname(default_pool, - RTE_MBUF_DEFAULT_MEMPOOL_OPS, NULL) < 0) { + rte_eal_mbuf_default_mempool_ops(), NULL) < 0) { printf("cannot set %s handler\n", RTE_MBUF_DEFAULT_MEMPOOL_OPS); goto err; -- 2.15.0