mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 00/22] refactor the walk and lookup hook functions in tc_action_ops
@ 2022-09-02 11:24 Zhengchao Shao
  2022-09-02 11:24 ` [PATCH net-next 01/22] net: sched: act_api: implement generic walker and search for tc action Zhengchao Shao
                   ` (21 more replies)
  0 siblings, 22 replies; 26+ messages in thread
From: Zhengchao Shao @ 2022-09-02 11:24 UTC (permalink / raw)
  To: netdev, linux-kernel, bpf, davem, edumazet, kuba, pabeni, jhs,
	xiyou.wangcong, jiri, martin.lau
  Cc: daniel, john.fastabend, ast, andrii, song, yhs, kpsingh, sdf,
	haoluo, jolsa, weiyongjun1, yuehaibing, shaozhengchao

The implementation logic of the walk/lookup hook function in each action
module is the same. Therefore, the two functions can be reconstructed.
When registering tc_action_ops of each action module, the corresponding
net_id is saved to tc_action_ops. In this way, the net_id of the
corresponding module can be directly obtained in act_api without executing
the specific walk and lookup hook functions. Generic functions can be
added to replace the walk and lookup hook functions of each action module.
Then, modify each action module in alphabetical order. Last, remove the
adaptation code of the patchset.

Zhengchao Shao (22):
  net: sched: act_api: implement generic walker and search for tc action
  net: sched: act_bpf: get rid of tcf_bpf_walker and tcf_bpf_search
  net: sched: act_connmark: get rid of tcf_connmark_walker and
    tcf_connmark_search
  net: sched: act_csum: get rid of tcf_csum_walker and tcf_csum_search
  net: sched: act_ct: get rid of tcf_ct_walker and tcf_ct_search
  net: sched: act_ctinfo: get rid of tcf_ctinfo_walker and
    tcf_ctinfo_search
  net: sched: act_gact: get rid of tcf_gact_walker and tcf_gact_search
  net: sched: act_gate: get rid of tcf_gate_walker and tcf_gate_search
  net: sched: act_ife: get rid of tcf_ife_walker and tcf_ife_search
  net: sched: act_ipt: get rid of tcf_ipt_walker/tcf_xt_walker and
    tcf_ipt_search/tcf_xt_search
  net: sched: act_mirred: get rid of tcf_mirred_walker and
    tcf_mirred_search
  net: sched: act_mpls: get rid of tcf_mpls_walker and tcf_mpls_search
  net: sched: act_nat: get rid of tcf_nat_walker and tcf_nat_search
  net: sched: act_pedit: get rid of tcf_pedit_walker and
    tcf_pedit_search
  net: sched: act_police: get rid of tcf_police_walker and
    tcf_police_search
  net: sched: act_sample: get rid of tcf_sample_walker and
    tcf_sample_search
  net: sched: act_simple: get rid of tcf_simp_walker and tcf_simp_search
  net: sched: act_skbedit: get rid of tcf_skbedit_walker and
    tcf_skbedit_search
  net: sched: act_skbmod: get rid of tcf_skbmod_walker and
    tcf_skbmod_search
  net: sched: act_tunnel_key: get rid of tunnel_key_walker and
    tunnel_key_search
  net: sched: act_vlan: get rid of tcf_vlan_walker and tcf_vlan_search
  net: sched: act: remove redundant code in act_api

 include/net/act_api.h      | 11 +----------
 net/sched/act_api.c        | 40 +++++++++++++++++++++++++++-----------
 net/sched/act_bpf.c        | 20 +------------------
 net/sched/act_connmark.c   | 20 +------------------
 net/sched/act_csum.c       | 20 +------------------
 net/sched/act_ct.c         | 20 +------------------
 net/sched/act_ctinfo.c     | 20 +------------------
 net/sched/act_gact.c       | 20 +------------------
 net/sched/act_gate.c       | 19 +-----------------
 net/sched/act_ife.c        | 20 +------------------
 net/sched/act_ipt.c        | 40 ++------------------------------------
 net/sched/act_mirred.c     | 20 +------------------
 net/sched/act_mpls.c       | 20 +------------------
 net/sched/act_nat.c        | 20 +------------------
 net/sched/act_pedit.c      | 20 +------------------
 net/sched/act_police.c     | 20 +------------------
 net/sched/act_sample.c     | 20 +------------------
 net/sched/act_simple.c     | 20 +------------------
 net/sched/act_skbedit.c    | 20 +------------------
 net/sched/act_skbmod.c     | 20 +------------------
 net/sched/act_tunnel_key.c | 20 +------------------
 net/sched/act_vlan.c       | 20 +------------------
 22 files changed, 51 insertions(+), 419 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2022-09-06 12:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 11:24 [PATCH net-next 00/22] refactor the walk and lookup hook functions in tc_action_ops Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 01/22] net: sched: act_api: implement generic walker and search for tc action Zhengchao Shao
2022-09-02 13:53   ` Jamal Hadi Salim
2022-09-02 11:24 ` [PATCH net-next 02/22] net: sched: act_bpf: get rid of tcf_bpf_walker and tcf_bpf_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 03/22] net: sched: act_connmark: get rid of tcf_connmark_walker and tcf_connmark_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 04/22] net: sched: act_csum: get rid of tcf_csum_walker and tcf_csum_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 05/22] net: sched: act_ct: get rid of tcf_ct_walker and tcf_ct_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 06/22] net: sched: act_ctinfo: get rid of tcf_ctinfo_walker and tcf_ctinfo_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 07/22] net: sched: act_gact: get rid of tcf_gact_walker and tcf_gact_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 08/22] net: sched: act_gate: get rid of tcf_gate_walker and tcf_gate_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 09/22] net: sched: act_ife: get rid of tcf_ife_walker and tcf_ife_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 10/22] net: sched: act_ipt: get rid of tcf_ipt_walker/tcf_xt_walker and tcf_ipt_search/tcf_xt_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 11/22] net: sched: act_mirred: get rid of tcf_mirred_walker and tcf_mirred_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 12/22] net: sched: act_mpls: get rid of tcf_mpls_walker and tcf_mpls_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 13/22] net: sched: act_nat: get rid of tcf_nat_walker and tcf_nat_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 14/22] net: sched: act_pedit: get rid of tcf_pedit_walker and tcf_pedit_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 15/22] net: sched: act_police: get rid of tcf_police_walker and tcf_police_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 16/22] net: sched: act_sample: get rid of tcf_sample_walker and tcf_sample_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 17/22] net: sched: act_simple: get rid of tcf_simp_walker and tcf_simp_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 18/22] net: sched: act_skbedit: get rid of tcf_skbedit_walker and tcf_skbedit_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 19/22] net: sched: act_skbmod: get rid of tcf_skbmod_walker and tcf_skbmod_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 20/22] net: sched: act_tunnel_key: get rid of tunnel_key_walker and tunnel_key_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 21/22] net: sched: act_vlan: get rid of tcf_vlan_walker and tcf_vlan_search Zhengchao Shao
2022-09-02 11:24 ` [PATCH net-next 22/22] net: sched: act: remove redundant code in act_api Zhengchao Shao
2022-09-02 14:03   ` Jamal Hadi Salim
2022-09-06 12:20     ` shaozhengchao

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

all inboxes | Powered by JetHome®