diff options
author | David S. Miller <davem@davemloft.net> | 2022-09-09 10:24:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-09-09 10:24:43 +0300 |
commit | 34df6a8a50aa72c4ac4fd65033a2798fc321adf8 (patch) | |
tree | 0d488fb3dfe110208028de199280cd09c9c91667 /include/soc/mscc | |
parent | dd14043af7b86238a4dc3280acf635eb43ea9851 (diff) | |
parent | 6d13a65d2a674c1cf4e70863394c01e4d07372e8 (diff) | |
download | linux-34df6a8a50aa72c4ac4fd65033a2798fc321adf8.tar.xz |
Merge branch 'tc_action_ops-refactor'
Zhengchao Shao says:
====================
net: refactor the walk and lookup hook functions in tc_action_ops
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. Then, generic functions can
be added to replace the walk and lookup hook functions of each action
module. Last, modify each action module in alphabetical order.
Reserve the walk and lookup interfaces and delete them when they are no
longer used.
This patchset has been tested by using TDC, and I will add selftest in
other patchset.
Last, thanks to Jamal Hadi Salim and Cong Wang for their advice.
---
v3: remove hole from the structure tc_action_ops
v2: save the net_id of each TC action module to the tc_action_ops structure
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/soc/mscc')
0 files changed, 0 insertions, 0 deletions