| To: | "Dimitry V. Ketov" <Dimitry.Ketov@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_prio.c |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | Thu, 10 Apr 2003 13:57:46 -0400 (EDT) |
| Cc: | netdev@xxxxxxxxxxx, "" <linux-kernel@xxxxxxxxxxxxxxx>, "" <kuznet@xxxxxxxxxxxxx> |
| In-reply-to: | <E1B7C89B8DCB084C809A22D7FEB90B381773AD@xxxxxxxxxxxxxxx> |
| References: | <E1B7C89B8DCB084C809A22D7FEB90B381773AD@xxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Looks good to me.
cheers,
jamal
On Thu, 10 Apr 2003, Dimitry V. Ketov wrote:
> The prio qdisc does not destroy its filter list, when someone deletes
> qdisc from interface without explicit filter deleting.
> This patch fixes that behavior.
>
> --- linux-2.4.20/net/sched/sch_prio.c Sat Aug 3 04:39:46 2002
> +++ linux/net/sched/sch_prio.c Thu Apr 10 17:52:55 2003
> @@ -158,11 +158,19 @@
> {
> int prio;
> struct prio_sched_data *q = (struct prio_sched_data *)sch->data;
> + struct tcf_proto *tp;
>
> for (prio=0; prio<q->bands; prio++) {
> qdisc_destroy(q->queues[prio]);
> q->queues[prio] = &noop_qdisc;
> }
> +
> + while((tp = q->filter_list) != NULL)
> + {
> + q->filter_list = tp->next;
> + tp->ops->destroy(tp);
> + }
> +
> MOD_DEC_USE_COUNT;
> }
>
>
>
>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_prio.c, Dimitry V. Ketov |
|---|---|
| Next by Date: | Re: Netlink as an IP Services Protocol to Informational, jamal |
| Previous by Thread: | [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_prio.c, Dimitry V. Ketov |
| Next by Thread: | Re: [PATCH] [2.4.20] filter_list destroy fix in net/sched/sch_prio.c, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |