From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0069.outbound.protection.outlook.com [104.47.42.69]) by dpdk.org (Postfix) with ESMTP id A231C3230 for ; Mon, 25 Sep 2017 23:23:47 +0200 (CEST) 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=KtXGmvZ4usJCxq/6gRI0lo12P5DZGAo5fkmXZai11dM=; b=axohqAo7VzWbQgoJXFB1bUTyPRH8x0b/3XpnHLOwsq1or+oMV5mH/k7gO7IUIHqGNI5YeVJh7sacYxJXTQX4Fy0PzxNd+XoE6v8+Qzw4Ckturc1wxliZE9W3rP6h4VaLYHF9qJkB2WAZMy8at5rqZY8b17UG+1k16MlPV/UXJZw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [192.168.89.224] (31.216.236.195) by BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 25 Sep 2017 21:23:43 +0000 To: Olivier MATZ References: <20170815080717.9413-1-santosh.shukla@caviumnetworks.com> <20170911151837.25092-1-santosh.shukla@caviumnetworks.com> <20170911151837.25092-2-santosh.shukla@caviumnetworks.com> <20170925072840.uyphm7flinn33suj@platinum> Cc: dev@dpdk.org, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com From: santosh Message-ID: Date: Mon, 25 Sep 2017 22:23:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170925072840.uyphm7flinn33suj@platinum> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [31.216.236.195] X-ClientProxiedBy: HE1PR1001CA0004.EURPRD10.PROD.OUTLOOK.COM (10.171.99.14) To BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8b94c465-491d-442c-eb1c-08d5045bb49f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR07MB3092; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 3:JnItG7pm3+oWmZ7FnNcb+z6gt7KifXmyS5/lY+PWcTXHDywftgVdDsb9UgzLswxI+vWnwUsH7DgrwRwWKr1i3Y/YUe4aFMCK0EOxZi6AP4rFreBe67PD+uY8gDe6pkl4MKG0HtXwLC7BmLNHPpUsko2ide8A/fXFR7oVALEej/gpYvhkEZV3z0qDe4GdYZoR/TIeutp6Dcp46vqpS+fPPLfoJyVhv7LESzVDMK0Q4d1E3Ov2kYS1vzps27kMsjee; 25:UkNRR7Nmu2xAwYt3dlBChP5NTfam4XJP1vj8f/rZfsgWeKzd2V4S+l0pqGpWYDZADRmRVbJXkJF972EQzNK+qYvqL2tRmy38nuB1ehHWubDd/SP0zpavKaYjUZijTU5isH41c5dhfBsC2c60+ndKhMa5a7WonsBRTDP1QWX1IZtORi9wLMf75jhuJzQooO+7YQ2bhXocXMcKX9XNWV4e/vN9eEMshDWqpR16YI48nWdX1InV0swyUBWijbc1gl1mKOIdZSgJay53M9FruPa0LUknqbzmo+zpnl6qY0qvfmJgIAV4vkgn9rHfcqjmk+gVPDaczM/6on8wVlVVyBWj8g==; 31:+y7GaKMdq8rqMGXVqF316P2L/71rC6KQ+VtpyZMMwQzP+nT0EVskt09SOtmT9CCvL6XSti1Wzm6N5uq+/UkvSC4zDhBKzVTijQEP5fqoFq+QVMuXpg18jpVJHFe9gnBmZqY/H6ppqta4esN8Bo2xKNdPCW1+k9sIZOgmmZflq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-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(3002001)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3092; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3092; X-Forefront-PRVS: 04410E544A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(6009001)(346002)(376002)(189002)(76104003)(377454003)(199003)(24454002)(65826007)(93886005)(42882006)(7736002)(4326008)(97736004)(478600001)(5660300001)(189998001)(23746002)(6666003)(50466002)(53936002)(33646002)(2906002)(81156014)(25786009)(76176999)(58126008)(8676002)(8936002)(101416001)(68736007)(2950100002)(36756003)(8656003)(54356999)(16576012)(50986999)(64126003)(81166006)(316002)(6916009)(3846002)(16526017)(31696002)(90366009)(72206003)(117156002)(106356001)(83506001)(305945005)(77096006)(6486002)(6116002)(86152003)(65956001)(105586002)(66066001)(31686004)(6246003)(229853002)(65806001)(47776003)(230700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3092; H:[192.168.89.224]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3092; 23:MTIG1vhkbo6cH8lOiKS4r/h09JUKDs8eeOvdj?= =?Windows-1252?Q?zk3RB4LbVBwEd2r/Lwfqc5o7aVPE2GL3AEvLHAONUnddybauIZidTTKr?= =?Windows-1252?Q?zOkEOXTDJSJKzrXGnNbNwCsrLWzB4wqUbmYV2rkngR3xRtAndJBiEwfX?= =?Windows-1252?Q?f/o4Bul83n39xOnFInxKDE7YslKZr3iG+RVZqw2IBFsbV4bu0sFJVmX2?= =?Windows-1252?Q?EszZpLFXvR6MWl3yVBwfQDzSyKbCKpycOsVGbaTcpyV2aNrIVTEeDg/n?= =?Windows-1252?Q?NI8H1dK14Aq/e24AjRYx1Zk4xwoVpoacJzkundMTwlJH+BTPCTCMw8G6?= =?Windows-1252?Q?IsKSnoa5PoAFnWG1yRK6WXWr3vOLpWRFiKesJ4f+BdBV1+JLiqZ6tlO4?= =?Windows-1252?Q?6X4MCuK5Uq6MNEehLEyylYKOdln/d0R+X1wN49ebw1uS//VwTI7+is7w?= =?Windows-1252?Q?lzAgdFQ/6jtrBVnEoeWfj9Q/VhWlx50QJJUjY8tvutf72pAOXUwxlTkn?= =?Windows-1252?Q?2m9arGU79SFVPPRhGHp60ml4ZL51ckFbSIgAzZwLFzGZ7f+T1KmOP1aR?= =?Windows-1252?Q?fXvke96HXeeznBAUz4tpNPLlQRsdqeHI37l0h+X5YHYfEc2ppD9XFuE5?= =?Windows-1252?Q?QX2I2yWvFc6Ap/oxO/0LqAOOMmxv5L4pA/TURWgZ3B1Mr+hzxpqMh+Eq?= =?Windows-1252?Q?kggC8UzjOvospc3ceaaji711O+hsxlb25Noq9AgU68+B2sjdRpV70j0+?= =?Windows-1252?Q?flyv9vG+TUiiNBwLLNaGu/3e+w3g2ZNLDK6KlexJEu6UaAdcoKM/MuZY?= =?Windows-1252?Q?im1cJ4VRiJvuA+vL65y6rx5JncD79gRHJds4wU9n9z+2XDYZFTfs9rEo?= =?Windows-1252?Q?cam8Li98szDRfhSqroEf4jS/i/4lOMVKN4g+x0+TXOSNWnA/vM8tG4BZ?= =?Windows-1252?Q?NzAxCKcszI5CtmvPAfo0R28bkYbv3J9I2B1qBN1nU+8ownRouREGlqrb?= =?Windows-1252?Q?oBCfq1s7BiCeEbpf23iiHKSLe/saOdOa5tn1t2AXG5VUSwqJqcVvkLcA?= =?Windows-1252?Q?nnvBt9ZDE4maosSol+yA6vivCrk25qNZPTLTZD9dMqDruFT5wkTUbb3c?= =?Windows-1252?Q?LdVov6JUdcCcMrMNVIyHIAvcTR5hR/e62kVl4zNpJ9kMLAW1GQObAsJN?= =?Windows-1252?Q?Yp/hdNz9efIMsiwUsq+BZimbDS+DuYY+yN6Wlio66iX4ig46VQNCQeKY?= =?Windows-1252?Q?CiDIHPLJUXXyxSbX0OhfJMYXcjyeQuWAJ1gLRma5Xdr1m+o/IIHv20aP?= =?Windows-1252?Q?bGMRDfnN0uvMOCpzSo/LvUWInM/7zorgwSVjZzS+NsCwUvEAyYqZSl43?= =?Windows-1252?Q?E5VwA7UxKKdCUCtq/7CXmaLYocYMtE1H6F9vgUpHzJfGw1icAMV+VYlw?= =?Windows-1252?Q?a29ATIWW3UYSq0B76obmILvMVjb9dsFwulgfOeUsXoPFfJrphGD9BySS?= =?Windows-1252?Q?3RSEXrEqgaRXv2sOjaBzF+VA7rOiJyK3dsM3Xg8Pt36id3pXCFDcFLIL?= =?Windows-1252?Q?94uT9hz/N2VqdKjKKkl7LpH7NHHYkNEBBWS?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 6:o7iZdYUTqhrbVcJ6UUBbUR7WFvS5TUGX8Tgb7i4aqKgeOlUWPN5GKEdrXxjkVw/nGS1CTSZUs+uirwyTXqcdpk5gR6dGAwtH5EHw5oII5TXgieZ/UCTYMqmkKZEe0+9AKzbyWiKE2Mfy7f5qh49DWsvHmYXyXqawk6rYZ32P+JJdh7yEFpWizpLux4gomjbGoXx3ivDk9GY8oD4CNq2F+FJS9ilhEKyJGbyyikqAPCxVWAEPHuTBn3ez3xvnSUIz5aZhADeop+tOPHNW+bb0n7Q2/mRokm3nI9fGZUWMtQwq0VqOSmAasADx8gEQ/e/rLGySZocUzZsSV1L2dWNCqw==; 5:wz7vUsabsLwkuPMfeJShQXyKcdEIlSQCLjIsk1joGrVHygtk2IarLWm+wEY8a7hshRrmhq2bvBO/nPDfy+QF5mTxT7LASZ2OQnIzwjDCI3YzlUSp+97NPca8XZs5AJSlPYqX9SLJvOK6CYyR9JIE2g==; 24:HTwP85pm10qcEX78JEX9yv7qjudG1GmLxAkN1wkozVsRER1P1hflWW/P1QTCYNLPLlNv+e+OI/m1vXKkm5l7rhBIkq3GqZ0U8pqMO7Lk/qs=; 7:n9v0n3ig+CDfCpYyQeqUP8CU5b+Yp8nrhiR18vuLYYEYhlQ5HKvQcNAYfkrf1JF3guqxIrFX3UQcr3X+6AY98TT+3aU9SXR+HF6xOdaQ5DjIYB3VmH1czYWXCY+HedsdPw7eRVIvrN1BAekmGZTzSDKyBPjZZYFSA1ZutfnsLFsbLKMCV0aCwtB7WDg2eaKJP0MyDgo2swOQ+R4QdpxwhaQ0T9V7LfkAW72vyM+1VCo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2017 21:23:43.1859 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3092 Subject: Re: [dpdk-dev] [PATCH v4 1/2] eal: allow user to override default pool handle 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, 25 Sep 2017 21:23:48 -0000 On Monday 25 September 2017 08:28 AM, Olivier MATZ wrote: > On Mon, Sep 11, 2017 at 08:48:36PM +0530, Santosh Shukla wrote: >> DPDK has support for both sw and hw mempool and >> currently user is limited to use ring_mp_mc pool. >> In case user want to use other pool handle, >> need to update config RTE_MEMPOOL_OPS_DEFAULT, then >> build and run with desired pool handle. >> >> Introducing eal option to override default pool handle. >> >> Now user can override the RTE_MEMPOOL_OPS_DEFAULT by passing >> pool handle to eal `--mbuf-pool-ops=""`. >> >> Signed-off-by: Santosh Shukla >> Acked-by: Hemant Agrawal >> >> [...] >> >> --- a/lib/librte_eal/common/eal_internal_cfg.h >> +++ b/lib/librte_eal/common/eal_internal_cfg.h >> @@ -82,7 +82,7 @@ struct internal_config { >> volatile enum rte_intr_mode vfio_intr_mode; >> const char *hugefile_prefix; /**< the base filename of hugetlbfs files */ >> const char *hugepage_dir; /**< specific hugetlbfs directory to use */ >> - >> + const char *mbuf_pool_name; /**< mbuf pool name */ >> unsigned num_hugepage_sizes; /**< how many sizes on this system */ >> struct hugepage_info hugepage_info[MAX_HUGEPAGE_SIZES]; >> }; > What do you think about mbuf_pool_ops_name instead? > > I'm afraid of the confusion we could have with the name > of the mempool. > Hoping that we're doing final renaming on handle, Its the third time and so for other mempool series. queued for v5.