From patchwork Fri Sep 16 08:51:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: shaozhengchao X-Patchwork-Id: 12978270 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 CD187C54EE9 for ; Fri, 16 Sep 2022 08:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230445AbiIPIu2 (ORCPT ); Fri, 16 Sep 2022 04:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiIPIu0 (ORCPT ); Fri, 16 Sep 2022 04:50:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A9198CAC; Fri, 16 Sep 2022 01:50:25 -0700 (PDT) Received: from dggpeml500026.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MTSMY4B6VzMmyB; Fri, 16 Sep 2022 16:45:45 +0800 (CST) Received: from huawei.com (10.175.101.6) by dggpeml500026.china.huawei.com (7.185.36.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 16 Sep 2022 16:50:22 +0800 From: Zhengchao Shao To: , , , , , , , , CC: , , , , , , , , , , , , , Subject: [RFC PATCH net-next 0/2] refactor the module and net init/exit functions in tc_action Date: Fri, 16 Sep 2022 16:51:53 +0800 Message-ID: <20220916085155.33750-1-shaozhengchao@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500026.china.huawei.com (7.185.36.106) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC Most action modules have their own module and net registration and unregistration interfaces, so add macros helper and replace them with it. Zhengchao Shao (2): net: sched: act_api: add helper macro for tcf_action in module and net init/exit net: sched: use module_net_tcf_action macro when module and net init/exit in action include/net/act_api.h | 26 ++++++++++++++++++++++++++ net/sched/act_bpf.c | 32 +------------------------------- net/sched/act_connmark.c | 31 +------------------------------ net/sched/act_csum.c | 32 +------------------------------- net/sched/act_ctinfo.c | 31 +------------------------------ net/sched/act_gate.c | 31 +------------------------------ net/sched/act_ife.c | 32 +------------------------------- net/sched/act_mpls.c | 32 +------------------------------- net/sched/act_nat.c | 32 +------------------------------- net/sched/act_pedit.c | 32 +------------------------------- net/sched/act_police.c | 32 +------------------------------- net/sched/act_sample.c | 32 +------------------------------- net/sched/act_skbedit.c | 32 +------------------------------- net/sched/act_skbmod.c | 32 +------------------------------- net/sched/act_tunnel_key.c | 32 +------------------------------- net/sched/act_vlan.c | 32 +------------------------------- 16 files changed, 41 insertions(+), 462 deletions(-)