diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-09-13 17:28:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-16 09:18:02 +0200 |
commit | 1158958a218bb55d1c358200d7f82808d11bf929 (patch) | |
tree | 3fca9616bf020edceb8c13f528846231eec134bc /kernel/bpf | |
parent | net/wan: dscc4: remove broken dscc4 driver (diff) | |
download | linux-1158958a218bb55d1c358200d7f82808d11bf929.tar.xz linux-1158958a218bb55d1c358200d7f82808d11bf929.zip |
net: sched: extend flow_action_entry with destructor
Generalize flow_action_entry cleanup by extending the structure with
pointer to destructor function. Set the destructor in
tc_setup_flow_action(). Refactor tc_cleanup_flow_action() to call
entry->destructor() instead of using switch that dispatches by entry->id
and manually executes cleanup.
This refactoring is necessary for following patches in this series that
require destructor to use tc_action->ops callbacks that can't be easily
obtained in tc_cleanup_flow_action().
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions