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 4200042DC2; Mon, 3 Jul 2023 15:01:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 136DF40EF0; Mon, 3 Jul 2023 15:01:21 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id A08F340ED5 for ; Mon, 3 Jul 2023 15:01:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688389278; x=1719925278; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=fV6zMXd0Mv64NoOCy2s7ruP3jDsFHP3wvYelZaYQcF8=; b=Ab58ZNIQNHPsNELGCxJSRfOH6UCcCTak8ZIe9milgag15snKI7XvdDvA OV7Xi40iotrXyz8ZoyEqIu24JXKKHOcvrLx6DVCNKsfFPy7O+iP7k1uJH vYhBiTgIhGTBkgRUOgGJyOHzPgCEuZsVXfMav9qH7eXP1d7Np+j0HozD8 KbyivDph0XUeTLn32na8NdXQbPVi8o9DUVF/AxR0j9edzYt7POsn3CmZ4 12SQz4rbiawMO5dXITdkv6fZ8jGeTayYQziX+S4Fl35IBjbU5Fhr04bSh MWex0mCCLSeIPLMuDVevV8fK1qP7+ok83W9+XWu+R5tLD3XWup7R2uqOc g==; X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="449250447" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="449250447" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2023 06:01:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10760"; a="712548876" X-IronPort-AV: E=Sophos;i="6.01,178,1684825200"; d="scan'208";a="712548876" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 03 Jul 2023 06:01:15 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 3 Jul 2023 06:01:15 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.27; Mon, 3 Jul 2023 06:01:14 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Mon, 3 Jul 2023 06:01:14 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) 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.27; Mon, 3 Jul 2023 06:01:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nxv77UNeBEqm9HJz+k4fosL7L0lGnzNQqGIq/togKkDL8IZb8H2QQO9wp+m4phRnnsdZqqeF5p5LJf70Qx0NClc+JGz6g/VFkEjU6c+kCm8kAyEo+/fvgyGd224zurf/8FuvgSC5mS22OUkz8Yxy3ZdxyjBJRzdKvB3cCO5y3V2yDDFLfBe5k9qykYcXRf38rjYqgzQzZanvuZ43AUdeK3vEeVLMzcC+fkAAS5+S3dIF2UloVYDjP95hjPzHilQtdwrdxwbVpLKHY12HQrc0xKBByyXFDeXpLIMBtf5JCGP2nCDbr5Pv8P1oqtncuQNbJ5VXayM8aAygoven4ybH+g== 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=fV6zMXd0Mv64NoOCy2s7ruP3jDsFHP3wvYelZaYQcF8=; b=B4gNxbX2nEMViuNFcCGW/riNRL9uGQv2nsm+GA9D+J12JBK9/FyNUp28IxZG9P/DcI7KD6A5upXOML5eH05icsytt0rhuMqw6gcAjsJg4ETZIBbqxYPDQrun4YnZKrOykMnh5qceCUjI6ZiMFm4+jTeM1VYICJ2s9yGUeivVUEHVkcQrD9INtPi8qf9NlZ82h2lgrgvEXc1KuB7Mdb6Tf0VpePxRvHfNLOxKDaTK27gb2aAOGTDOKUse6n/LxUMKiJHuvAn1Cru8wJqLTQpDxyR9bHyZXhjl52JTRthkDNCVIi3tscSBjIOWyQ6c2a0QM8E2Ha9Cy9haljiiXuZrNA== 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 Received: from DS0PR11MB7442.namprd11.prod.outlook.com (2603:10b6:8:14d::22) by CH3PR11MB8707.namprd11.prod.outlook.com (2603:10b6:610:1bf::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.8; Mon, 3 Jul 2023 13:01:08 +0000 Received: from DS0PR11MB7442.namprd11.prod.outlook.com ([fe80::e536:321a:f1ad:7484]) by DS0PR11MB7442.namprd11.prod.outlook.com ([fe80::e536:321a:f1ad:7484%4]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 13:01:08 +0000 From: "Dumitrescu, Cristian" To: Volodymyr Fialko , "dev@dpdk.org" CC: "jerinj@marvell.com" , "anoobj@marvell.com" , "thomas@monjalon.net" Subject: RE: [PATCH v5] bitmap: add scan from offset function Thread-Topic: [PATCH v5] bitmap: add scan from offset function Thread-Index: AQHZrat8FRIxsGDGmkqgv1vXSa8YEK+oAVyg Date: Mon, 3 Jul 2023 13:01:08 +0000 Message-ID: References: <20230703093130.198304-1-vfialko@marvell.com> <20230703123909.328480-1-vfialko@marvell.com> In-Reply-To: <20230703123909.328480-1-vfialko@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS0PR11MB7442:EE_|CH3PR11MB8707:EE_ x-ms-office365-filtering-correlation-id: 0d8b21e7-fc25-45b8-0e52-08db7bc591a4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D+FRndpaooZB4JyYXwqV+4uITDNt33iM4gKtww8JJPYLrrNrHwF/4eScnolvIWNebnTFzm8OhzWfECaFOG0WvD9m94U0d80FLBlgfRKSQznwF27I3/P18GEj8nUcqMvZ7yz2mgoJdqAQGmJegxg/xwXHcWfD1zA1mVhnIXPoIWSi58snsaWaT/QF2Z4c/6ihPRGX43Z/hIJhjeBUenmEC95ndfmwUF5xtlW5rLs9E/2t2hiD60OX3eqO9wZuJNVeq+wBLtngSC1BQIs4pvPR5T0QE8kXZQa/jZ3vewBixi6aXUTCZgS8yaqeGFHYho02hV9SqRYjzLQUtT9FjIzzpmgq6x0IUS2V2dk9a8JQCldLxl6YxTshD8XHDjL6sFkhyYwdY5HydiMH8imUAIcZ8IV8LwhnoSNawPPg7Ct6PZAnFaSUPoP3NJZYoXhdndh5A7mbjVYiV3d8CAjgzBC7RNxdzMidDnUfAgSrcNIoxLs1Mx9NJGdImW4Lkip32RawGd3JHz/pI9lVAXKqCDLcQ8AXUGWs70j9+XOwsoL/RAuQn0SOtULowqB7uDkijlwDCNDAF3YnZHUe7a6wZ/iO5WIzWhqtYM4oBKSb73O9yv24Yk4/VK3cVNruK0ouDQcf x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS0PR11MB7442.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(136003)(396003)(346002)(376002)(366004)(39860400002)(451199021)(26005)(186003)(6506007)(55016003)(76116006)(2906002)(316002)(8676002)(8936002)(53546011)(5660300002)(52536014)(64756008)(66446008)(4744005)(41300700001)(71200400001)(122000001)(82960400001)(4326008)(66476007)(83380400001)(66946007)(66556008)(33656002)(110136005)(54906003)(38070700005)(478600001)(9686003)(38100700002)(86362001)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?JfT0x9GNPfRByHXtkxCwYoOYN2wFPruHnaPmLL+YjGGlvk58U1KPD20PYA2G?= =?us-ascii?Q?hzAR01hp+SxwP2KqokveDTjs3X6F5G2JAHxLwsLX0l/LTvzOOALvBLqct4nK?= =?us-ascii?Q?VvlW6U7YZ+JyfVEtPPGHkYJOhCdevwX+oPfYfPsdiuY7VyBvrgIFhCaH3SXh?= =?us-ascii?Q?N6QDYKqBhwC7ULT3bgkoUNOrlzvDvW1DZDt5q1OGzSNIUJZyjovuBAyarziY?= =?us-ascii?Q?UAO9xC7FRjutjN3hISn7IMRbQU07ej9N4SI+agHkK6EIMyKaHySYYMq6W2Y1?= =?us-ascii?Q?F/FQFsuVM0XiDaH0lyFxWh7xE2nJg7mdo91i1Zcxe7gE5L2+gA+BOtUTOZaH?= =?us-ascii?Q?NDXvNbhWDwWQ1pgrMSRCLp/lzZ0r+FRRvwKR5tmRbIp1Iad02XxcpCdJ9k6R?= =?us-ascii?Q?/4DyIQcyo3HR3EX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ascii?Q?sbE89kXjVce/s9el2/SpzVUypXZTk7UZXw0reA60earUBkQ88UUTo2utMR3Y?= =?us-ascii?Q?tWROr0gWBXmnbvtI50y6HUiNC2XEt3irv63Ufhj5FoywEmeDYvwvc+6jpxpM?= =?us-ascii?Q?EYKDJkouVQ43IK3tw0OhPOwvkjDPTgjckUd2mscqYl4I0Y+lkY0id5qNo9Ve?= =?us-ascii?Q?nwr+ccy0+R02p7Zvakl8/7m/g0szxwpJMuYaatH1+0j/yXGNaT3nMYWXLJLv?= =?us-ascii?Q?2SGvWE/cpi9liIJxkILfNGJN5vAJKsC0Z9lrC12ypfDlsGkx0Mv9UNTmOE4s?= =?us-ascii?Q?cw=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7442.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d8b21e7-fc25-45b8-0e52-08db7bc591a4 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2023 13:01:08.4731 (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: 3Z7eQN614Y1tvX8yL0IdOuGO1vyEH9l8uYb9y5XjglaDBR/lSQf6670yZ5v6YAMrsFhsvGf8/0JtvNc2fOJRKalU1lGx1b35pC1fUULfbwY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8707 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 > -----Original Message----- > From: Volodymyr Fialko > Sent: Monday, July 3, 2023 1:39 PM > To: dev@dpdk.org; Dumitrescu, Cristian > Cc: jerinj@marvell.com; anoobj@marvell.com; thomas@monjalon.net; > Volodymyr Fialko > Subject: [PATCH v5] bitmap: add scan from offset function >=20 > Currently, in the case when we search for a bit set after a particular > value, the bitmap has to be scanned from the beginning and > rte_bitmap_scan() has to be called multiple times until we hit the value. >=20 > Add a new rte_bitmap_scan_from_offset() function to initialize scan > state at the given offset and perform scan, this will allow getting > the next set bit after certain offset within one scan call. >=20 > Signed-off-by: Volodymyr Fialko > --- Acked-by: Cristian Dumitrescu