Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8216664rwb; Tue, 13 Dec 2022 03:51:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pKsYZoFbp690lsk+fHfYMNlGdzPvXoyij2AVssh/P9eArAyPuBvaavE+nBdADVjIBb5sS X-Received: by 2002:a05:6a21:3989:b0:a7:9dfd:52e8 with SMTP id ad9-20020a056a21398900b000a79dfd52e8mr24689095pzc.52.1670932302592; Tue, 13 Dec 2022 03:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670932302; cv=none; d=google.com; s=arc-20160816; b=kl1YsNevzZc/xMoWE2FLqgBXiJeCwENButW8ZjvflBPRSJXJYhQ8wij5SszdQMgaV8 tzwX5BfIyYNDo1K+skcguRyGn7X6LAcbMxbiuV3ufxttX9TO8hqGWJuXgtEseYBPjA6g XUKlh7l/lfZhmbECsh13swVUXOUu8bK+A6nq5Ef4kUeSBrac2EbKV5q78JTzFkX0auD/ Z33+9NDmJ6uR171/P+jxNF+XG7z/sJhpUuczd9BYbpFd+5M+cm8IysRI/lMVDHQ+3z4G MQKeDYUqbgFFFYCCv2L2nSs7ftETDd5eXTEvXvkLX+Mbp8c1fbgfDQCLZwYnIa3Fpr8r 9/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/tJ/chxvpZsGp80+Zx7LCVM/d6EuM6QNr8B3SbExXTk=; b=CCkfR4z+teOH9iy0F5JfFiHm/rC+6zJ04SOiNTRYTtjpQI8aRVg5JyQixsIMBlYZ1V 7ayrryU2WaIjxBmuJzjafG/slOVxX0libQuk0mdBiX2SbcOBuNsxC/tSQutaa9YXF+UL 0RKmUBZorREBD4KsZXNb59xN167J/yxqlF9M8gEU5ANH03SEi2OXmaXigCl577Mb7Zg4 tvpjqSztm4bQXUVHptoUbX9Gpw65o6JL671yGGKrf9glg1JVwqDi8CDy6JNxaKlCCXdi Ph8Bsqnjkz5T9syIpU6hK0hZpWlA3PioANMnEcjtaiCvuyRb+pUEdW68Devp4gO5zitF 4Hhg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a63a551000000b0046ff3634a6asi12817202pgu.215.2022.12.13.03.51.33; Tue, 13 Dec 2022 03:51:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235292AbiLML3J (ORCPT + 74 others); Tue, 13 Dec 2022 06:29:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbiLML2j (ORCPT ); Tue, 13 Dec 2022 06:28:39 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2127F1D0E9; Tue, 13 Dec 2022 03:28:27 -0800 (PST) Date: Tue, 13 Dec 2022 12:28:24 +0100 From: Pablo Neira Ayuso To: Julian Anastasov Cc: Li Qiong , Simon Horman , Jozsef Kadlecsik , Florian Westphal , netdev@vger.kernel.org, linux-kernel , lvs-devel@vger.kernel.org, netfilter-devel@vger.kernel.org, kernel-janitors@vger.kernel.org, coreteam@netfilter.org, Yu Zhe Subject: Re: [PATCH v2] ipvs: add a 'default' case in do_ip_vs_set_ctl() Message-ID: References: <272315c8-5e3b-e8ca-3c7f-68eccd0f2430@nfschina.com> <20221212074351.26440-1-liqiong@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Mon, Dec 12, 2022 at 04:20:41PM +0200, Julian Anastasov wrote: > > Hello, > > On Mon, 12 Dec 2022, Li Qiong wrote: > > > It is better to return the default switch case with > > '-EINVAL', in case new commands are added. otherwise, > > return a uninitialized value of ret. > > > > Signed-off-by: Li Qiong > > Reviewed-by: Simon Horman > > Change looks correct to me for -next, thanks! > > Acked-by: Julian Anastasov Applied, thanks.