From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ED8FC433FF for ; Wed, 31 Jul 2019 15:59:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36E06208E3 for ; Wed, 31 Jul 2019 15:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730324AbfGaP7K (ORCPT ); Wed, 31 Jul 2019 11:59:10 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:50084 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730160AbfGaP7J (ORCPT ); Wed, 31 Jul 2019 11:59:09 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6753393EB0F19B20B741; Wed, 31 Jul 2019 23:59:05 +0800 (CST) Received: from [127.0.0.1] (10.184.191.73) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Wed, 31 Jul 2019 23:58:54 +0800 Subject: Re: [PATCH net v2] ipvs: Improve robustness to the ipvs sysctl To: Julian Anastasov CC: , , , , Florian Westphal , , "netdev@vger.kernel.org" , , , , Mingfangsen , , References: <1997375e-815d-137f-20c9-0829a8587ee9@huawei.com> <4a0476d3-57a4-50e0-cae8-9dffc4f4d556@huawei.com> From: hujunwei Message-ID: <484fef63-710a-701e-3151-eefaf3b9b1ca@huawei.com> Date: Wed, 31 Jul 2019 23:58:49 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.184.191.73] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, Julian On 2019/7/31 3:29, Julian Anastasov wrote: > > Hello, > > On Tue, 30 Jul 2019, hujunwei wrote: > >> From: Junwei Hu >> >> The ipvs module parse the user buffer and save it to sysctl, >> then check if the value is valid. invalid value occurs >> over a period of time. >> Here, I add a variable, struct ctl_table tmp, used to read >> the value from the user buffer, and save only when it is valid. >> I delete proc_do_sync_mode and use extra1/2 in table for the >> proc_dointvec_minmax call. >> >> Fixes: f73181c8288f ("ipvs: add support for sync threads") >> Signed-off-by: Junwei Hu > > Looks good to me, thanks! > > Acked-by: Julian Anastasov > > BTW, why ip_vs_zero_all everywhere? Due to old git version? > I will update the git version and send the patch v3. Regards, Junwei