Skip to content

Commit affaa0c

Browse files
dcarattidavem330
authored andcommitted
net/sched: remove tcf_idr_cleanup()
tcf_idr_cleanup() is no more used, so remove it. Suggested-by: Cong Wang <[email protected]> Signed-off-by: Davide Caratti <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 353def8 commit affaa0c

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/net/act_api.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ bool tcf_idr_check(struct tc_action_net *tn, u32 index, struct tc_action **a,
149149
int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
150150
struct tc_action **a, const struct tc_action_ops *ops,
151151
int bind, bool cpustats);
152-
void tcf_idr_cleanup(struct tc_action *a, struct nlattr *est);
153152
void tcf_idr_insert(struct tc_action_net *tn, struct tc_action *a);
154153

155154
int __tcf_idr_release(struct tc_action *a, bool bind, bool strict);

net/sched/act_api.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,6 @@ bool tcf_idr_check(struct tc_action_net *tn, u32 index, struct tc_action **a,
296296
}
297297
EXPORT_SYMBOL(tcf_idr_check);
298298

299-
void tcf_idr_cleanup(struct tc_action *a, struct nlattr *est)
300-
{
301-
if (est)
302-
gen_kill_estimator(&a->tcfa_rate_est);
303-
free_tcf(a);
304-
}
305-
EXPORT_SYMBOL(tcf_idr_cleanup);
306-
307299
int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est,
308300
struct tc_action **a, const struct tc_action_ops *ops,
309301
int bind, bool cpustats)

0 commit comments

Comments
 (0)