net_sched: act: refactor cleanup ops
For bindcnt and refcnt etc., they are common for all actions, not need to repeat such operations for their own, they can be unified now. Actions just need to do its specific cleanup if needed. Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
86062033fe
commit
a5b5c958ff
@@ -289,7 +289,6 @@ static struct tc_action_ops act_nat_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.act = tcf_nat,
|
||||
.dump = tcf_nat_dump,
|
||||
.cleanup = tcf_hash_release,
|
||||
.init = tcf_nat_init,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user