From patchwork Fri Apr 15 16:39:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tonghao Zhang X-Patchwork-Id: 12815187 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A763DC433EF for ; Fri, 15 Apr 2022 16:40:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347321AbiDOQmm (ORCPT ); Fri, 15 Apr 2022 12:42:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351468AbiDOQmZ (ORCPT ); Fri, 15 Apr 2022 12:42:25 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AB995A15C for ; Fri, 15 Apr 2022 09:39:56 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id c23so7549567plo.0 for ; Fri, 15 Apr 2022 09:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WLbvMdFUjeOsEVw2kQd/JFDkXOsqqWVeP/u+VlXoS7E=; b=CSYqK+kbErrShISrcVLb1WCuakgRD6dK/xZCGa+ns+eTa/lsQx1qm/++9HO8rt3ELn GrPKEQYDp7wq8V6mncQdkDPsxsYo66Quni2mTjULThAIgHuSoSknPkz80BP3I/ZtSJAY EdoIGydyQPz9eT2flzRfMRMcEqxrs/ypn/O6+lYIw9mhKOcnQ0w+vE9H5u+Xw1lxr+ST vN7JayZD9doeaUf74bb74Uo4VPtq1vpFa4yy/DRaBS6rfxb8vlsFhw2LOhJvgbvKQNkF eubBHhMls/b8arZwrUvpCx3kre5HPXCdDDC0A+X0/nte/8xIEhx2hHhxSgOdANo9YRa8 2x1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WLbvMdFUjeOsEVw2kQd/JFDkXOsqqWVeP/u+VlXoS7E=; b=MKxxMfBsMbXLCWImfdJVJAtkMfg310ib8xK/BXLHkGG+1Ec025XTAt3BWNzWSeQ8rC GbT64/LxoqhNMnUWgRmyKGSI5HFJyYRvP4B9E/jBitVrYW8FfFGoy4sm6vfGT0WMTQE6 eXcSvv2HmlnWFaPIrNW6UA7hb/ege6HShSw/gf3o3GAKXgZhjuWEzYZVWjSCWIVtb0Vo sP49qvH25IJcfZ5wMAk2rFEEIz5bCzng0IuuoRLFNIsHar7t5IhBL1JXd3fZPWfMaPyc bdJwW6iUTvo8JJMZsjkD9u2Qypbpc+C5Gl+WkpIBr8e3zQq367CZ9aoxY7YzGj20xKNT AeSw== X-Gm-Message-State: AOAM533T3rZJGV38QxecnvPTCMLS7ksW/X1h/efzR9KGqJNlQwnIWGk+ ZM161ebG5DWvbbenpwnvxpiliNYZEt7xOLpD X-Google-Smtp-Source: ABdhPJykHqJlN/77ORftaOJmjXDniBCNmH12G5XFmcsGqSMMlg7bw5v5qHpFWU5GZNEVcxrBI3+MSA== X-Received: by 2002:a17:90b:4d89:b0:1cb:b402:fadf with SMTP id oj9-20020a17090b4d8900b001cbb402fadfmr4956793pjb.29.1650040795719; Fri, 15 Apr 2022 09:39:55 -0700 (PDT) Received: from localhost.localdomain ([111.201.148.136]) by smtp.gmail.com with ESMTPSA id y13-20020a17090a154d00b001cb5f0b55cfsm5598077pja.1.2022.04.15.09.39.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2022 09:39:55 -0700 (PDT) From: xiangxia.m.yue@gmail.com To: netdev@vger.kernel.org Cc: Tonghao Zhang , Luis Chamberlain , Kees Cook , Iurii Zaikin , "David S. Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , Simon Horman , Julian Anastasov , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Dmitry Vyukov , Alexei Starovoitov , Eric Dumazet , Marc Kleine-Budde , Lorenz Bauer , Akhmat Karakotov Subject: [PATCH v3 0/2] use standard sysctl macro Date: Sat, 16 Apr 2022 00:39:10 +0800 Message-Id: <20220415163912.26530-1-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Tonghao Zhang This patchset introduce sysctl macro or replace var with macro. Tonghao Zhang (2): net: sysctl: use shared sysctl macro net: sysctl: introduce sysctl SYSCTL_THREE fs/proc/proc_sysctl.c | 2 +- include/linux/sysctl.h | 9 +++++---- net/core/sysctl_net_core.c | 13 +++++-------- net/ipv4/sysctl_net_ipv4.c | 16 ++++++---------- net/ipv6/sysctl_net_ipv6.c | 6 ++---- net/netfilter/ipvs/ip_vs_ctl.c | 4 +--- 6 files changed, 20 insertions(+), 30 deletions(-) --- v3: split v2 to 2 patches https://patchwork.kernel.org/project/netdevbpf/patch/20220406124208.3485-1-xiangxia.m.yue@gmail.com/ Cc: Luis Chamberlain Cc: Kees Cook Cc: Iurii Zaikin Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Hideaki YOSHIFUJI Cc: David Ahern Cc: Simon Horman Cc: Julian Anastasov Cc: Pablo Neira Ayuso Cc: Jozsef Kadlecsik Cc: Florian Westphal Cc: Dmitry Vyukov Cc: Alexei Starovoitov Cc: Eric Dumazet Cc: Marc Kleine-Budde Cc: Lorenz Bauer Cc: Akhmat Karakotov -- 2.27.0