[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220916085155.33750-1-shaozhengchao@huawei.com>
Date: Fri, 16 Sep 2022 16:51:53 +0800
From: Zhengchao Shao <shaozhengchao@...wei.com>
To: <netdev@...r.kernel.org>, <bpf@...r.kernel.org>,
<davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <jhs@...atatu.com>,
<xiyou.wangcong@...il.com>, <jiri@...nulli.us>
CC: <ast@...nel.org>, <daniel@...earbox.net>, <andrii@...nel.org>,
<martin.lau@...ux.dev>, <song@...nel.org>, <yhs@...com>,
<john.fastabend@...il.com>, <kpsingh@...nel.org>, <sdf@...gle.com>,
<haoluo@...gle.com>, <jolsa@...nel.org>, <weiyongjun1@...wei.com>,
<yuehaibing@...wei.com>, <shaozhengchao@...wei.com>
Subject: [RFC PATCH net-next 0/2] refactor the module and net init/exit functions in tc_action
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(-)
--
2.17.1
Powered by blists - more mailing lists