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 07DE242D2F; Fri, 23 Jun 2023 14:41:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8276B40ED7; Fri, 23 Jun 2023 14:41:12 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 4EBC7406B8 for ; Fri, 23 Jun 2023 14:41:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687524071; x=1719060071; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xmBXUrTxXWKFjMqisnCBx6i2FPcEk3DK9vAon9ipGfg=; b=lx1qOh69gZiayt2Zz+v4TLpQIGRuT3jO7NxXg4z0NYf1G8jXIGiTWKVH s9o/jj30RX7W/HjrIlultfgOj9VlCFWhuVPED4v0pQShdmxrtspXUMMYu G7Us3qTGojy+2jY++laIDBXy0v25zv7zl3NMuoiaWGVhQ7o6uDtMej4By fkLnBDh9yVSaPu6KLHHU4jFf7wRdQAk3O3rgrTjcnwdvcxpNoGjqP9NZG D40i0kYgkM4/sUsriQgQm0jCU1odc2HayzM6WdjtXdatwk7lvlFZUFC9b UiZMqqDbzF1Ht9NZaseUaf3m9MlavN8vzm0SOkEW7SUhxP2hqrYrxufTC A==; X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="360783939" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="360783939" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2023 05:40:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="718493782" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="718493782" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga007.fm.intel.com with ESMTP; 23 Jun 2023 05:40:56 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) 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.23; Fri, 23 Jun 2023 05:40:56 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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; Fri, 23 Jun 2023 05:40:55 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.27 via Frontend Transport; Fri, 23 Jun 2023 05:40:55 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Fri, 23 Jun 2023 05:40:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YUpEWly6DI1K5rMHkMJLuHXZtN8jbM3uhVp6tn4WzaSV2cbe+8nZhl20Z+IuNrqcBRFshlMxQ5b9TVuLpQtK0qnd+hJYU12Ny5c9gZ7s+fIruJhz6Vcjc5GNMi7PyTwe1vdoW/tmQVpTIFW8Yg/vqA4Cb+eck9KYQSgXU8ujjYQXKTvjf5rrTYstnoH0xN8N5nppmaTDmPRFWUHa0V0wGzwXEBgKuepvC4nd4k1zFGMBBXGtMLd2sp3hJUbNO01nONJ9h/PgIc2y3dWmn2Vw4DKIeOSJ8tGtKcvek45HKBChQmBbXW/jPjKlpMdeIyP0A/97ARagBUQZ/EY2+AEjTw== 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=nOPukjntcFrcdvYnDAd1hyiASDXuLwOICNereERGU+U=; b=M7fYHM0OdV7qaofJ6iIQRRbDnJEYCfvQQS488j3c+Qtiphx9u0fma/LAqs4jy9VzEi/RJFd9nDoTPw+GzMDCrQcLlIJAaNP+koR8nZ3sSdW4RaXyBLIXFQuf3kj/ol6rRRNEMl0ZaLA6KKssm/CTkAkYAsyLIg2vP6pom0Q2z7MkWWxOPUVvOSpOp/pD5Dp5Iu4cbEfxJ4YdkzK5yLFX2TrrCSR3hIsv+dhdi6LDjUxfkvOxR/WMrKg9xbyQXOppMYazdEQNAiWVrVof26QIWcGBmTod/rpkdw50PmLxgQmWTJWg69rlm6pf6HNkwK+p93jRh/ohvgRZ+A/SGYyp9Q== 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 PH0PR11MB4952.namprd11.prod.outlook.com (2603:10b6:510:40::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Fri, 23 Jun 2023 12:40:53 +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.6521.024; Fri, 23 Jun 2023 12:40:53 +0000 From: "Dumitrescu, Cristian" To: Thomas Monjalon , Volodymyr Fialko CC: "dev@dpdk.org" , "jerinj@marvell.com" , "anoobj@marvell.com" Subject: RE: [PATCH v3] bitmap: add scan from offset function Thread-Topic: [PATCH v3] bitmap: add scan from offset function Thread-Index: AQHZpCdlWbjj07D5C0OdRKr/5ebi86+XGiWAgAE9YjA= Date: Fri, 23 Jun 2023 12:40:52 +0000 Message-ID: References: <20230613154013.2648333-1-vfialko@marvell.com> <20230621100105.3742249-1-vfialko@marvell.com> <2597786.7s5MMGUR32@thomas> In-Reply-To: <2597786.7s5MMGUR32@thomas> 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_|PH0PR11MB4952:EE_ x-ms-office365-filtering-correlation-id: 772e2510-5b60-4a0b-ffae-08db73e714e3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: USusclgUB1GbdAVp703IyGkMmW249KurPno0gYDOU/B4I7RY/6iyDhwVL+PNbfpiP2mS14TSZZcPlOMV4KM6Co63ju0gjbwp2alD4atb8G85MvGFcrFUSny2rQuJHATqXbDuH9cOAWKbISCQMreHQZxqD9BNlhNP1z2ceYaAM0y+LyCYvCkvO+lRHwdtxMlz3/cKCKelWDMU7v5zPepEGYxG6MkxNbpRu0aY65EogJWCeoITpGEW9N2yywQCf1LSsCZ9HFcxZm/oO7MdYbSxPdd8/cQO+DDujjVwS8ai8ttfsFjpvy/BpfWygBMO+gn3acg2riPeroa7j09tcJ41onHBsS5/JPrjfsvrFusN719mRiS09GORCClVQuolDxStKffV+J9FRmZmtPUIACSzcYFs/bFZvB/PUY1oiiyiuiI0w8O/YrjDbksIGH95/nUfk5cdqsMCjAzaWq4MOge4jZpqk3fq1L7VgKnnWXAy1Zspoyg6DbuPJAtnquMIk3l/Tw5hdE2x3SB/344/OaOfDNqxi6XqrRZpytYNssbE8DDlAnoEQQXVOndqepAnFTKpa66ZNhxBhkZcQRkq+qC8ShxOX6+o3/Srzx8JyufGKQZ3lgDSAjf8Xw596yy5TeNJ 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)(396003)(376002)(366004)(39860400002)(136003)(346002)(451199021)(38070700005)(83380400001)(8936002)(52536014)(8676002)(41300700001)(66476007)(316002)(82960400001)(66446008)(64756008)(66556008)(122000001)(38100700002)(9686003)(7696005)(186003)(71200400001)(26005)(6506007)(53546011)(54906003)(478600001)(110136005)(55016003)(4326008)(86362001)(76116006)(66946007)(33656002)(2906002)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4b3xNlpz+C6MtOEcs2g6WRw6WqvjcWuBhSUPvRT3nkxQnRa9PB2D18F4sFVc?= =?us-ascii?Q?K5hWCoY4qI4TJQt2RhgLlwuJW+J2N1vu6j1fydmcPbvnDb2pQ7v7hH6gz8Hi?= =?us-ascii?Q?VPdzck3I9aEskj/s1LOXmy1hZAkrV9vWXhyhDB20aueYspmGZaY+CYu8imH+?= =?us-ascii?Q?E85qVJ7oPLnbzj+awNu1ivY3EbtDI+/YsJAPBvgXW0ZKVpIxCG4Uzc8jQiXp?= =?us-ascii?Q?eav7D1/NhN2opeb9/WykeELvnVnLXraBSl+x68Wi6mA8feU07ci0H6VQp8EE?= =?us-ascii?Q?xp0E/LADe+GwQX9v7GTPSmqcXSUVZt8CO/HSA+jlPib9PiryRrj5uRDM7Mg2?= =?us-ascii?Q?h/InJy/56JbgrFOFSdRBmvV0HtfMxyBJSKF8FW4w9zZYLR3i6oEwaDf+4CAb?= =?us-ascii?Q?triH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?us-ascii?Q?8iBJOXuYepjVtpCQZ7M+VIqHMaVxeuH6Ik3mTdMHAojEI9SRjqPzZ+nt+U8s?= =?us-ascii?Q?th/BQfb81iwTlZ2+3USfuo0/c64QQFqpDxvQHxGYFaSgMeEuG1HcnNrCwYqJ?= =?us-ascii?Q?hMiCZWpdbYTW9bGpV3po2gO7EY3NXb3aoBT+gJdpmsuyp3UYLTtkqrxmCT3+?= =?us-ascii?Q?7Ldrauby2qp55g0S/AiNSr30JSPHZHa4HnyQoo4zeWYhzEZ35WBCPPX0rqb4?= =?us-ascii?Q?kf6vtSn4MDpV+/wVka/q27wJivDRxt1wdRAoCkCDRESl86KOAebQNqgfPUHS?= =?us-ascii?Q?Jw=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: 772e2510-5b60-4a0b-ffae-08db73e714e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2023 12:40:52.7801 (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: 2wlqmspBGB0ulLO7/SCoySGafdf663gKUKY4pY/K2/QapVE+V+ACCuhyj2NaYxNgLQ0o02wr8Ntp1rtN4OTR++BzVI/1q4Yk8t5g4D7USIo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4952 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: Thomas Monjalon > Sent: Thursday, June 22, 2023 6:45 PM > To: Volodymyr Fialko > Cc: dev@dpdk.org; Dumitrescu, Cristian ; > jerinj@marvell.com; anoobj@marvell.com > Subject: Re: [PATCH v3] bitmap: add scan from offset function >=20 > 21/06/2023 12:01, Volodymyr Fialko: > > 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 valu= e. > > > > 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. > > > > Signed-off-by: Volodymyr Fialko > > --- > > v2: > > - added rte_bitmap_scan_from_offset > > v3 > > - added note for internal use only for init_at function > [...] > > +/** > > + * @warning > > + * @b EXPERIMENTAL: this API may change without prior notice. > > + * > > + * Bitmap initialize internal scan pointers at the given position for = the scan > function. > > + * > > + * Note: for private/internal use, for public: > > + * @see rte_bitmap_scan_from_offset() > > + * > > + * @param bmp > > + * Handle to bitmap instance > > + * @param pos > > + * Bit position to start scan > > + */ > > +__rte_experimental > > +static inline void > > +__rte_bitmap_scan_init_at(struct rte_bitmap *bmp, uint32_t pos) >=20 > I think it should marked with __rte_internal instead of experimental. >=20 >=20 +1