From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFDC8E54E; Sat, 6 Jan 2024 19:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tMTxhAP4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88CDEC433C8; Sat, 6 Jan 2024 19:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704567815; bh=bRD/aygV8YP62Vz+smxGR1HhyVBL/a1oriAC4WeJvc4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tMTxhAP4/B6LnKI1TA9fcYq3Q3ApW4EBzunT5LmUZdkFSi+QPpjO9hhkW5LpSee4D VxsOoNNsd5N1hOht9TqJVcQiDdDd0jLninbJOLKgM3qRYKTW0H5C9OTJ05HcXYqgqM jLegNqI/kWw2CUJZOl7MgMPyScmjBfGIbMALrrEzVFfZzatKdIaSZr+mNy/CBWd7hI pLiRRb1udwFwEX4bjnOuRj8PELjcODmvFFziOamQxEztn7+uEx3rUnhLgM687Rn8eZ +JD92ZHHSNFMuZCMby2P3YgunzyRMKrH5hkMw9W0JaLjgEV3Ng/VensBKsu7yIK2ep E4WGutAle6vcA== Date: Sat, 6 Jan 2024 19:03:29 +0000 From: Simon Horman To: Christophe JAILLET Cc: Louis Peens , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , alexis.lothore@bootlin.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, oss-drivers@corigine.com, netdev@vger.kernel.org Subject: Re: [PATCH net-next] nfp: flower: Remove usage of the deprecated ida_simple_xx() API Message-ID: <20240106190329.GE31813@kernel.org> References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jan 05, 2024 at 10:10:37AM +0100, Christophe JAILLET wrote: > ida_alloc() and ida_free() should be preferred to the deprecated > ida_simple_get() and ida_simple_remove(). > > This is less verbose. > > Note that the upper bound of ida_alloc_range() is inclusive while the one > of ida_simple_get() was exclusive. > So NFP_FL_LAG_GROUP_MAX has been decreased by 1. It now better watch the > comment stating that "1 to 31 are valid". > > The only other user of NFP_FL_LAG_GROUP_MAX has been updated accordingly in > nfp_fl_lag_put_unprocessed(). > > Signed-off-by: Christophe JAILLET Reviewed-by: Simon Horman