Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp832518rdb; Sat, 6 Jan 2024 11:03:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcb5TMNGwIvV/n0SeLotSxVuUO+anh7H/rd10zhCIzRQq8GygmZJ28mAmoybMRidabkXPm X-Received: by 2002:a50:c050:0:b0:553:db85:a508 with SMTP id u16-20020a50c050000000b00553db85a508mr528646edd.84.1704567829233; Sat, 06 Jan 2024 11:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704567829; cv=none; d=google.com; s=arc-20160816; b=nW7XFl2uEuRdR3Luiq5ofPa2zMrP88JFzmoHdoQ3aOYoJrJZ6eb/4MEzzYPSnuPWnJ bAuykj/BAto3SG0fYEsqrw6Fs/pkl+s8UjssxZjfxBYsPEd6rCCTw3KyjtBEb4heoxtQ QzWwkexasetvFBIP39TcDqgsbWt2+PetH+hpFjKG+sSGiw4z+pcxp/nrC8w7y0OFBVz3 isySAk5qgX94RHU5UwQ4tlrGmTbu+IUc4QQf2EJcHJe1h/vzGF4+F+xSO3ms0RVpMWjj RhyTNdQYIHqDuvNzxwyxF1hC2bCY+8tzkiWyEoS8gqjUuYFdJ4V9IkClfFyQaSzaYmsx zZqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5ZBrSQIKk/c/F4ooshqchz2pOxxo/kAac3SG0ZKkLlw=; fh=QhSO+JYbsg6pUXZjWAGD4qLavZKRNfVL0CuVQDRObSA=; b=Png8dcl3vRFc3L07unxotqvbcbDx7j1gKC1P2zTe6eqyTcQ9kwW+6IANtdUoJYAd5i gKG3RoKjiBHMkCyumnvK4BT4hys7TLEv7IDgwdxOGlUt4DwNu771L/okgIg5fnr+80Hk /CjKTW7dRpFN4G9znELozzb3/FqYXvb93u+Cf8L9kxl3DVor1a3edoFAWu/rS9hmOlJI mqfRtyERIim6yEMGyFduzHa2nBEtig1k4V8pxtnK6rmTO/VwBuoOaqbyXEPoGoqvoTHK 19oEaXK3HQ7EynYVBl4it2dw/jiIE6PphDKYNVgMr5BKvPyx3+tnu9NElI2Vk6WhrdNk S0qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tMTxhAP4; spf=pass (google.com: domain of linux-kernel+bounces-18695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bl15-20020a056402210f00b005539b123030si1627535edb.167.2024.01.06.11.03.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 11:03:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tMTxhAP4; spf=pass (google.com: domain of linux-kernel+bounces-18695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EA3691F22286 for ; Sat, 6 Jan 2024 19:03:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B94AF4E4; Sat, 6 Jan 2024 19:03:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tMTxhAP4" X-Original-To: linux-kernel@vger.kernel.org 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) 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: linux-kernel@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