From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F31D41C88; Mon, 13 Feb 2023 12:05:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5154D40A81; Mon, 13 Feb 2023 12:05:58 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 935A0400D6 for ; Mon, 13 Feb 2023 12:05:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676286356; x=1707822356; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=gPz4DEOwq+AGeeNlInzwbDH5k7Vqu8n5bSjkEloXn4U=; b=ZBG8SxeusYyNESO9rcl/rR0MdxuxjQ4UMeCKlxugI1q72oALmA5+CiXi n0xYb1ohdMUeTEoOpX1yYLvyXKK0OFE2liP8QlXa+Z5f5xrXMtYoPRiMF 8AK9wNUoer0ZmvkXgP5j1jKL1/AZWkBj5bU531++ZamLMf6M/fHg24dou PmwLBwDmEg3fhkHVBTznRxuQUBJ6yueuLwTHrrV4DfQGXZwaFTpSsGPue xP0QpYJE6tqpPQus/aH/IGcysVjldOpoKKN3nBWQ4QbfkE1b1t7is9iLE 8FJtnjR9ebARJt4hBOUj+P1xo9MlNrvemwVHuZHstJ+vCnjv7t3WK3fIY w==; X-IronPort-AV: E=McAfee;i="6500,9779,10619"; a="314507523" X-IronPort-AV: E=Sophos;i="5.97,293,1669104000"; d="scan'208";a="314507523" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2023 03:05:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10619"; a="737472904" X-IronPort-AV: E=Sophos;i="5.97,293,1669104000"; d="scan'208";a="737472904" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga004.fm.intel.com with ESMTP; 13 Feb 2023 03:05:55 -0800 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 13 Feb 2023 03:05:54 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 13 Feb 2023 03:05:54 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Mon, 13 Feb 2023 03:05:54 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Mon, 13 Feb 2023 03:05:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fK+1UhqloxjosOE80kuVe510hplDxt4uKoOSPAmixP3EamOwBaYrEBkBo6Xs1ftKCom7dAbDjVLGD9rNPo4Z7Fkn21dTk0NwqdeLvLoP4F7ojNLm9DpJuz72WbWLUCrPASiv4DhtyjSPZowS0fzM/h1N3VLKC4mpK7CcDZms6+GnWmBEZD8Cd4VZyrL75wR+FX9nVQQB0B4MJAWvQwphlF9wX4oKgYqMsW0LBBqqa+9yFHM7xUiUcZ0sNkxi12E/Sqg3oxuEhrxNBKg6Dt8VBXpwb5oBCIlvjWLWPcUvrMgyOQMrbpzehj8JWSDVdD3qJQaUlDQjbZYeX6bf3+Ey3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=08AIMkuCcxyIk/JuVOfH3KTt31VwMVYZb3JMj/CSEeg=; b=GGTToegIoIDoG9PHjnOLika1cSTjoFS/adIDkFV4Df+43ubS/XNHJwem0E1F/fPzcUR4VpGOyAOAdiNb519VT5ms485WkeUX4Ot39pGu1iZ8rfyc9iVG5jbaZvny1HktuFNOBTDJHxKKMiUqePF3tum71gn3XCZRfQamKiAQM6ii1MoilGet5cPEorUTO6dn/OVx2/vbl+S01Z+Y2tkw6kYTLrcs3Oi99BfATsJJsNvsYHJl0gqbC+Wy4pk98o/cYKfu3UVA7lSvkFk7Xl493LmoHRL3lX+WgdaYjm5/WxrUQvToFLwRtmAd946dF0IfYu715v116C4w0HSn4/cV5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) by SA3PR11MB8119.namprd11.prod.outlook.com (2603:10b6:806:2f2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.24; Mon, 13 Feb 2023 11:05:51 +0000 Received: from DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aaba:abb7:8794:def]) by DS0PR11MB7309.namprd11.prod.outlook.com ([fe80::aaba:abb7:8794:def%8]) with mapi id 15.20.6086.024; Mon, 13 Feb 2023 11:05:51 +0000 Date: Mon, 13 Feb 2023 11:05:44 +0000 From: Bruce Richardson To: Ophir Munk CC: , Ophir Munk , Matan Azrad , Thomas Monjalon , Lior Margalit , Asaf Penso Subject: Re: [PATCH v1] config: make max memzones definition configurable Message-ID: References: <20230212085319.693689-1-ophirmu@nvidia.com> Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230212085319.693689-1-ophirmu@nvidia.com> X-ClientProxiedBy: LO2P265CA0266.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::14) To DS0PR11MB7309.namprd11.prod.outlook.com (2603:10b6:8:13e::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7309:EE_|SA3PR11MB8119:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e532e8d-0bc4-4e74-2d01-08db0db244ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eYkgg3qT8iIFpEfOPcDT2t3d5S2ZCfwFYAFyWhC1Gyer2h785Bq3Jwo2muCsF5fcQmfZDudLP3cxfYSo6jiwzxWqbwhW5FKQRynlnTOL4ZGglE18Oj7otH7VxceSKx8tFMImIURKN3B0RNnbDoygTIoxTAKPz3vLp7xs468ANY/O/C3lSNoXvwWofkRHbtbOZL1uazYrB1H82eI1gNOu80HwSWoFGJVniPBe3D9RSU2tJldgv4LkgaZdlqqK6uIcR+0v4PtXDkyBmOpqUUsFbd3mAfobrhUo8Xxw+fsOZl3me3SGZidHDie/qEcmy4+2ESkhBd9qfneWC/6LtlxGjlUjIBzS1dmFFISSQXLVTBXfm4+KueCZ8RpQUh0X3d7/rOokGakAwajJE8yql/b4xOLLuZCIWavUKdNIYQ6Y/wsGe0h3x/htSnvBXFyq7D2tZB0j2+bCt9i0yPmmLewsw6mcjp5jm8D6koXapccmga7FTShAEA6Igi39FGVkC5yg1SoUrDE3RAOC6m1w6Oc3jj/AXhhojNSlv+fdsnjHNagOq/7RbHI+qXGjY+cpy7xigRB5faURScnBQoRh+lIGhO38lpoquzlUnoeZEc1fLsvvrzK7sw42gvrkldNK9Ja3thAIO0s2/MGavwXrDTTNkEF63ifIU+zZC+A2GY6aaEvpMjscGk25yB3RhKtURVCo0wb7VdygdlqOFSZLqc7AiA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7309.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(376002)(396003)(346002)(366004)(136003)(451199018)(5660300002)(8936002)(41300700001)(6512007)(186003)(6666004)(2906002)(6506007)(38100700002)(44832011)(6916009)(478600001)(316002)(26005)(966005)(6486002)(86362001)(54906003)(4326008)(8676002)(66946007)(66476007)(66556008)(83380400001)(82960400001)(67856001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q09XSmFUVmZrakVFQkFsaEl6Y2d4QjhqanF0TFRROWNBSmJzNzhUQ3BCcmQw?= =?utf-8?B?VU5IYTZQR3JVTVhmUXFFWitGR1J6QXAwQTVzdVM1eHdPbzJMVDNTeEY2SG1Q?= =?utf-8?B?RjMrcWJxamtjZTNGRnB4WDNVbDNoSjUyNTRXUk96VWp4Vm1TMnpEdmNFRlc1?= =?utf-8?B?SUd6R05RQ0lxUnZucWFJQVJKcllXT3ZGNFBubldqa3Z3Q1gvdTFVZW55Vmho?= =?utf-8?B?cXZybSt4a3BMQ0tYMmRaQ2hZeXlDMmR5K3N4cC9jT21BQndWZ05QaElXY1Jl?= =?utf-8?B?WGtlNXRwQmNRVlVRemhRelU1cVBuRlBtZWxBVnd2U1NKelhJYS8rUnkzNG9z?= =?utf-8?B?Skx6NWpiNC9VQWxKTmV5b1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xMmJvR2RQTDAx?= =?utf-8?B?VUE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 9e532e8d-0bc4-4e74-2d01-08db0db244ff X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7309.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2023 11:05:51.7377 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zGjCveiF+ljg65TPJKDK/eRP85OO58yohhungGw3ctb2DZOYCceBOGg6vFkEHVpgR4UVT0+skD7MmPFV9MM+duMQZEELcTyI8Wgrgc5NDvQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB8119 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, Feb 12, 2023 at 10:53:19AM +0200, Ophir Munk wrote: > In current DPDK the RTE_MAX_MEMZONE definition is unconditionally hard > coded as 2560. For applications requiring different values of this > parameter – it is more convenient to set its value as part of the meson > command line rather than changing the dpdk source code per application. > An example would be of an application that uses the DPDK mempool library > which is based on DPDK memzone library. The application may need to > create a number of steering tables, each of which will require its own > mempool allocation. > This commit adds a meson optional parameter named max_memzones. If not > specified - it is set by default to 2560. The hard coded definition of > RTE_MAX_MEMZONE is removed. During meson build time the RTE_MAX_MEMZONE > can be optionally defined as the value of max_memzones parameter. > > Signed-off-by: Ophir Munk > --- > RFC: > https://patchwork.dpdk.org/project/dpdk/patch/20230130092302.376145-1-ophirmu@nvidia.com/ > > config/meson.build | 1 + > config/rte_config.h | 1 - > meson_options.txt | 2 ++ > 3 files changed, 3 insertions(+), 1 deletion(-) > Acked-by: Bruce Richardson