mbox series

[RFC,net-next,0/2] refactor the module and net init/exit functions in tc_action

Message ID 20220916085155.33750-1-shaozhengchao@huawei.com (mailing list archive)
Headers show
Series refactor the module and net init/exit functions in tc_action | expand

Message

shaozhengchao Sept. 16, 2022, 8:51 a.m. UTC
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(-)