BPF List
 help / color / mirror / Atom feed
* [RFC PATCH net-next 0/2] refactor the module and net init/exit functions in tc_action
@ 2022-09-16  8:51 Zhengchao Shao
  2022-09-16  8:51 ` [RFC PATCH net-next 1/2] net: sched: act_api: add helper macro for tcf_action in module and net init/exit Zhengchao Shao
  2022-09-16  8:51 ` [RFC PATCH net-next 2/2] net: sched: use module_net_tcf_action macro when module and net init/exit in action Zhengchao Shao
  0 siblings, 2 replies; 6+ messages in thread
From: Zhengchao Shao @ 2022-09-16  8:51 UTC (permalink / raw)
  To: netdev, bpf, davem, edumazet, kuba, pabeni, jhs, xiyou.wangcong,
	jiri
  Cc: ast, daniel, andrii, martin.lau, song, yhs, john.fastabend,
	kpsingh, sdf, haoluo, jolsa, weiyongjun1, yuehaibing,
	shaozhengchao

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-19 16:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-16  8:51 [RFC PATCH net-next 0/2] refactor the module and net init/exit functions in tc_action Zhengchao Shao
2022-09-16  8:51 ` [RFC PATCH net-next 1/2] net: sched: act_api: add helper macro for tcf_action in module and net init/exit Zhengchao Shao
2022-09-17 19:03   ` Cong Wang
2022-09-19 11:07     ` shaozhengchao
2022-09-19 16:50       ` Cong Wang
2022-09-16  8:51 ` [RFC PATCH net-next 2/2] net: sched: use module_net_tcf_action macro when module and net init/exit in action Zhengchao Shao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox