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 16E6717AD4 for ; Tue, 30 May 2023 14:58:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77879C43446; Tue, 30 May 2023 14:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685458717; bh=cBQ4dqX01OLJXHFuDNypBedsmL6W577e01tqCkXAfqQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=IqAQ41l4mPu0KJDKfLySQILKWq/N3cMx9QbtI17A5/x15p0r+axju5xlNHwpYXM8B MYU8LKYT6crjsVnXvId72z6qh0dj4qy8cTkwsnChRutOt/Y70SNsKn7WZD8DQYTez3 Rmy4GQd2nmAhn+CXwpZ9stMTUCUnfnIAdQeVl41L4j7fi1+oma9LpWk0e+RZgRTg1I EtQjJYPDqALB4ixeL5II5DM5NXhcHe11qUbzY8sPertDH3AD4bjxs/7vSfWXhi7Olp sPyVXSjvXgIvmj1BxdQk1PQ0/FfN9KWqaD1Pqp5l1PT023ZQMbyBCRDPHWIXsLpCEJ PB1zXEcEOZa3g== Message-ID: Date: Tue, 30 May 2023 08:58:36 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH net-next 2/4] nexthop: Factor out neighbor validity check Content-Language: en-US To: Benjamin Poirier , netdev@vger.kernel.org Cc: Shuah Khan , linux-kselftest@vger.kernel.org, Ido Schimmel References: <20230529201914.69828-1-bpoirier@nvidia.com> <20230529201914.69828-3-bpoirier@nvidia.com> From: David Ahern In-Reply-To: <20230529201914.69828-3-bpoirier@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/29/23 2:19 PM, Benjamin Poirier wrote: > For legacy nexthops, there is fib_good_nh() to check the neighbor validity. > In order to make the nexthop object code more similar to the legacy nexthop > code, factor out the nexthop object neighbor validity check into its own > function. > > Signed-off-by: Ido Schimmel > Signed-off-by: Benjamin Poirier > --- > net/ipv4/nexthop.c | 29 ++++++++++++++++------------- > 1 file changed, 16 insertions(+), 13 deletions(-) > Reviewed-by: David Ahern