From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH v2] ipvs: add a 'default' case in do_ip_vs_set_ctl() Date: Tue, 13 Dec 2022 12:28:24 +0100 Message-ID: References: <272315c8-5e3b-e8ca-3c7f-68eccd0f2430@nfschina.com> <20221212074351.26440-1-liqiong@nfschina.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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.