[NET_SCHED]: Unline tcf_destroy
Uninline tcf_destroy and add a helper function to destroy an entire filter chain. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3bebcda280
commit
a48b5a6144
@@ -346,14 +346,9 @@ static void ingress_reset(struct Qdisc *sch)
|
||||
static void ingress_destroy(struct Qdisc *sch)
|
||||
{
|
||||
struct ingress_qdisc_data *p = PRIV(sch);
|
||||
struct tcf_proto *tp;
|
||||
|
||||
DPRINTK("ingress_destroy(sch %p,[qdisc %p])\n", sch, p);
|
||||
while (p->filter_list) {
|
||||
tp = p->filter_list;
|
||||
p->filter_list = tp->next;
|
||||
tcf_destroy(tp);
|
||||
}
|
||||
tcf_destroy_chain(p->filter_list);
|
||||
#if 0
|
||||
/* for future use */
|
||||
qdisc_destroy(p->q);
|
||||
|
Reference in New Issue
Block a user