Skip to content

Commit 9a63b25

Browse files
congwangdavem330
authored andcommitted
net_sched: remove unused parameter from act cleanup ops
No one actually uses it. Cc: Jiri Pirko <[email protected]> Cc: Jamal Hadi Salim <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8bf5438 commit 9a63b25

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

include/net/act_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct tc_action_ops {
8686
int (*act)(struct sk_buff *, const struct tc_action *,
8787
struct tcf_result *);
8888
int (*dump)(struct sk_buff *, struct tc_action *, int, int);
89-
void (*cleanup)(struct tc_action *, int bind);
89+
void (*cleanup)(struct tc_action *);
9090
int (*lookup)(struct net *, struct tc_action **, u32);
9191
int (*init)(struct net *net, struct nlattr *nla,
9292
struct nlattr *est, struct tc_action **act, int ovr,

net/sched/act_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int __tcf_idr_release(struct tc_action *p, bool bind, bool strict)
9999
p->tcfa_refcnt--;
100100
if (p->tcfa_bindcnt <= 0 && p->tcfa_refcnt <= 0) {
101101
if (p->ops->cleanup)
102-
p->ops->cleanup(p, bind);
102+
p->ops->cleanup(p);
103103
tcf_idr_remove(p->idrinfo, p);
104104
ret = ACT_P_DELETED;
105105
}

net/sched/act_bpf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static int tcf_bpf_init(struct net *net, struct nlattr *nla,
357357
return ret;
358358
}
359359

360-
static void tcf_bpf_cleanup(struct tc_action *act, int bind)
360+
static void tcf_bpf_cleanup(struct tc_action *act)
361361
{
362362
struct tcf_bpf_cfg tmp;
363363

net/sched/act_ife.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static int dump_metalist(struct sk_buff *skb, struct tcf_ife_info *ife)
387387
}
388388

389389
/* under ife->tcf_lock */
390-
static void _tcf_ife_cleanup(struct tc_action *a, int bind)
390+
static void _tcf_ife_cleanup(struct tc_action *a)
391391
{
392392
struct tcf_ife_info *ife = to_ife(a);
393393
struct tcf_meta_info *e, *n;
@@ -405,13 +405,13 @@ static void _tcf_ife_cleanup(struct tc_action *a, int bind)
405405
}
406406
}
407407

408-
static void tcf_ife_cleanup(struct tc_action *a, int bind)
408+
static void tcf_ife_cleanup(struct tc_action *a)
409409
{
410410
struct tcf_ife_info *ife = to_ife(a);
411411
struct tcf_ife_params *p;
412412

413413
spin_lock_bh(&ife->tcf_lock);
414-
_tcf_ife_cleanup(a, bind);
414+
_tcf_ife_cleanup(a);
415415
spin_unlock_bh(&ife->tcf_lock);
416416

417417
p = rcu_dereference_protected(ife->params, 1);
@@ -546,7 +546,7 @@ static int tcf_ife_init(struct net *net, struct nlattr *nla,
546546
if (exists)
547547
tcf_idr_release(*a, bind);
548548
if (ret == ACT_P_CREATED)
549-
_tcf_ife_cleanup(*a, bind);
549+
_tcf_ife_cleanup(*a);
550550

551551
if (exists)
552552
spin_unlock_bh(&ife->tcf_lock);
@@ -567,7 +567,7 @@ static int tcf_ife_init(struct net *net, struct nlattr *nla,
567567
err = use_all_metadata(ife);
568568
if (err) {
569569
if (ret == ACT_P_CREATED)
570-
_tcf_ife_cleanup(*a, bind);
570+
_tcf_ife_cleanup(*a);
571571

572572
if (exists)
573573
spin_unlock_bh(&ife->tcf_lock);

net/sched/act_ipt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static void ipt_destroy_target(struct xt_entry_target *t)
7777
module_put(par.target->me);
7878
}
7979

80-
static void tcf_ipt_release(struct tc_action *a, int bind)
80+
static void tcf_ipt_release(struct tc_action *a)
8181
{
8282
struct tcf_ipt *ipt = to_ipt(a);
8383
ipt_destroy_target(ipt->tcfi_t);

net/sched/act_mirred.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ static bool tcf_mirred_act_wants_ingress(int action)
5050
}
5151
}
5252

53-
static void tcf_mirred_release(struct tc_action *a, int bind)
53+
static void tcf_mirred_release(struct tc_action *a)
5454
{
5555
struct tcf_mirred *m = to_mirred(a);
5656
struct net_device *dev;

net/sched/act_pedit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ static int tcf_pedit_init(struct net *net, struct nlattr *nla,
216216
return ret;
217217
}
218218

219-
static void tcf_pedit_cleanup(struct tc_action *a, int bind)
219+
static void tcf_pedit_cleanup(struct tc_action *a)
220220
{
221221
struct tcf_pedit *p = to_pedit(a);
222222
struct tc_pedit_key *keys = p->tcfp_keys;

net/sched/act_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla,
9696
return ret;
9797
}
9898

99-
static void tcf_sample_cleanup(struct tc_action *a, int bind)
99+
static void tcf_sample_cleanup(struct tc_action *a)
100100
{
101101
struct tcf_sample *s = to_sample(a);
102102
struct psample_group *psample_group;

net/sched/act_simple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int tcf_simp(struct sk_buff *skb, const struct tc_action *a,
4747
return d->tcf_action;
4848
}
4949

50-
static void tcf_simp_release(struct tc_action *a, int bind)
50+
static void tcf_simp_release(struct tc_action *a)
5151
{
5252
struct tcf_defact *d = to_defact(a);
5353
kfree(d->tcfd_defdata);

net/sched/act_skbmod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static int tcf_skbmod_init(struct net *net, struct nlattr *nla,
184184
return ret;
185185
}
186186

187-
static void tcf_skbmod_cleanup(struct tc_action *a, int bind)
187+
static void tcf_skbmod_cleanup(struct tc_action *a)
188188
{
189189
struct tcf_skbmod *d = to_skbmod(a);
190190
struct tcf_skbmod_params *p;

net/sched/act_tunnel_key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static int tunnel_key_init(struct net *net, struct nlattr *nla,
201201
return ret;
202202
}
203203

204-
static void tunnel_key_release(struct tc_action *a, int bind)
204+
static void tunnel_key_release(struct tc_action *a)
205205
{
206206
struct tcf_tunnel_key *t = to_tunnel_key(a);
207207
struct tcf_tunnel_key_params *params;

net/sched/act_vlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static int tcf_vlan_init(struct net *net, struct nlattr *nla,
219219
return ret;
220220
}
221221

222-
static void tcf_vlan_cleanup(struct tc_action *a, int bind)
222+
static void tcf_vlan_cleanup(struct tc_action *a)
223223
{
224224
struct tcf_vlan *v = to_vlan(a);
225225
struct tcf_vlan_params *p;

0 commit comments

Comments
 (0)