Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp476894rwb; Sat, 17 Sep 2022 08:32:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7nOwK2/7Wj+loeEL2vesyKq2UE79dYTcTGr2jBS39R6rTA9qPbp3UHSKThDsTIe0iR1Z7/ X-Received: by 2002:a17:907:6da2:b0:781:aae:d8fc with SMTP id sb34-20020a1709076da200b007810aaed8fcmr833890ejc.236.1663428741672; Sat, 17 Sep 2022 08:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663428741; cv=none; d=google.com; s=arc-20160816; b=DPT1zlxLRZNka3PhPztKax8F8M2Uz2bUzJmDLzbcbYmt2jIGAzVff3xtRoxMrE4u+T 6fDSToyTNM/o86YZonZ3rt1KoVJvYiJjdDla57wNnKVlXc9+iozKktL8t+izxXku36aX BUvXM6iO24079xZ32HOWFekljSUiz6UiN6EJs6mpvkIzNjWOeDi7HT0K04Zu/u1JSmHn xNYFaooGzoS8KRyqH+Ql9/+Efqe+kgcTT3KRpdwoLr/PJ/wRA7TN3HBRhd1pCnTN+ztg Um0sDsua016c5EKIEXfdPlfSxRoEcS3sH1Oqayc1UqCYaESPYoENG5D6taGgOox+j04c gnOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=9uZXRAK6cXr9832/7sMIeNpqwsdONESRi3Ihllgu/tk=; b=dzzkb0D70ybkrgKHCqKXHGIrCEcR0mYekvkkVweuR4/9aTzRjG62XNoD9z10svMjBu Pmoxqcda9QExAGDBs8+07Vvq2zsaXHvV/ds+w07/PNk3Jmgv2G63fvjGaz5r76JZZTcG WKdz5Kkn+30RyChnU4uoVgX3mMXhQ0DU4bFIIYjMySSxBZL+pqn6AZJNXmN6aoMPZ2xe 6POts1wrPkhwxqxmg8eHtaNwBR2d4CKWH4PwATVUa++L5oCAnU0cl0/kXpc4EISr1r7F W6j6DtiKplwitBxiYE1oUE2Bas3p9RW9EmRBg8vhdptD3/MJ5fAO+qx336TKy4azjOsV jrgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q7tgWx3m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a05640250cb00b0044900e60983si5201737edb.541.2022.09.17.08.31.51; Sat, 17 Sep 2022 08:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q7tgWx3m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229708AbiIQOpi (ORCPT + 99 others); Sat, 17 Sep 2022 10:45:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiIQOph (ORCPT ); Sat, 17 Sep 2022 10:45:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DCCD2DA82; Sat, 17 Sep 2022 07:45:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9EB2EB80C75; Sat, 17 Sep 2022 14:45:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E843EC433C1; Sat, 17 Sep 2022 14:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663425933; bh=/OQZbiyBlKEnscXaDM1BFamg10VDkDfQyL9LzR2MrDE=; h=Date:Subject:To:References:From:In-Reply-To:From; b=q7tgWx3mwIqEeCbVBLcYfjczNQyfQ4pGDIGo+2ykkwNXqY204wcg9pJOC8/o/i7uH 3/Fdn0h3ziW7nW4WYHN6c7cvKWRUw5eTLBX4E93U+agShYS1T2AeLTWh5usFIHsV2l FJMXRXRDaVEexfUvzqLOAQeEM1VZGf7dl9s3qj0mnW2+4YtzxdbyzgngMGzWMssrrM zaw8KabGhtCQyVyHU8sx+OBUYdIP36sR4nAwbwItRTVDtDtep7f1MWMbkrMMxuy+d8 qDQCInwHUjN+ZzijxipteDIQbQ6Zaoxb34JjL43DDVorUVagfwSuXbJxH47Jxes7CN /BrDnoD3/lx5A== Message-ID: Date: Sat, 17 Sep 2022 08:45:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH -next] nexthop: simplify code in nh_valid_get_bucket_req Content-Language: en-US To: williamsukatube@163.com, davem@davemloft.net, yoshfuji@linux-ipv6.org, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220917063031.2172-1-williamsukatube@163.com> From: David Ahern In-Reply-To: <20220917063031.2172-1-williamsukatube@163.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/22 12:30 AM, williamsukatube@163.com wrote: > From: William Dean > > It could directly return 'nh_valid_get_bucket_req_res_bucket' to simplify code. > > Signed-off-by: William Dean > --- > net/ipv4/nexthop.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > Reviewed-by: David Ahern