Skip to content

Commit 79112c2

Browse files
jpirkodavem330
authored andcommitted
sched: rename tcf_destroy to tcf_destroy_proto
This function destroys TC filter protocol, not TC filter. So name it accordingly. Signed-off-by: Jiri Pirko <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b4c4ebc commit 79112c2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

include/net/sch_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ struct Qdisc *qdisc_create_dflt(struct netdev_queue *dev_queue,
405405
const struct Qdisc_ops *ops, u32 parentid);
406406
void __qdisc_calculate_pkt_len(struct sk_buff *skb,
407407
const struct qdisc_size_table *stab);
408-
bool tcf_destroy(struct tcf_proto *tp, bool force);
408+
bool tcf_proto_destroy(struct tcf_proto *tp, bool force);
409409
void tcf_destroy_chain(struct tcf_proto __rcu **fl);
410410
int skb_do_redirect(struct sk_buff *);
411411

net/sched/cls_api.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
323323

324324
tfilter_notify(net, skb, n, tp, fh,
325325
RTM_DELTFILTER, false);
326-
tcf_destroy(tp, true);
326+
tcf_proto_destroy(tp, true);
327327
err = 0;
328328
goto errout;
329329
}
@@ -338,7 +338,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
338338
err = -EEXIST;
339339
if (n->nlmsg_flags & NLM_F_EXCL) {
340340
if (tp_created)
341-
tcf_destroy(tp, true);
341+
tcf_proto_destroy(tp, true);
342342
goto errout;
343343
}
344344
break;
@@ -350,7 +350,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
350350
tfilter_notify(net, skb, n, tp,
351351
t->tcm_handle,
352352
RTM_DELTFILTER, false);
353-
if (tcf_destroy(tp, false))
353+
if (tcf_proto_destroy(tp, false))
354354
RCU_INIT_POINTER(*back, next);
355355
}
356356
goto errout;
@@ -374,7 +374,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n)
374374
tfilter_notify(net, skb, n, tp, fh, RTM_NEWTFILTER, false);
375375
} else {
376376
if (tp_created)
377-
tcf_destroy(tp, true);
377+
tcf_proto_destroy(tp, true);
378378
}
379379

380380
errout:

net/sched/sch_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp,
19001900
}
19011901
EXPORT_SYMBOL(tc_classify);
19021902

1903-
bool tcf_destroy(struct tcf_proto *tp, bool force)
1903+
bool tcf_proto_destroy(struct tcf_proto *tp, bool force)
19041904
{
19051905
if (tp->ops->destroy(tp, force)) {
19061906
module_put(tp->ops->owner);
@@ -1917,7 +1917,7 @@ void tcf_destroy_chain(struct tcf_proto __rcu **fl)
19171917

19181918
while ((tp = rtnl_dereference(*fl)) != NULL) {
19191919
RCU_INIT_POINTER(*fl, tp->next);
1920-
tcf_destroy(tp, true);
1920+
tcf_proto_destroy(tp, true);
19211921
}
19221922
}
19231923
EXPORT_SYMBOL(tcf_destroy_chain);

0 commit comments

Comments
 (0)