| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2/7] [PKT_SCHED] make dsmark try using pfifo instead of noop while grafting |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Fri, 27 May 2005 16:51:36 +0200 |
| Cc: | werner@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050527145002.GR15391@xxxxxxxxxxxxxx> |
| References: | <20050527145002.GR15391@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
---
commit 0297af53b691b2c14b09f65be7b9e32a43a34319
tree 686339fe0d5a70e263d261324365e65f53cc9880
parent 99ed2eb92cc035b223e2d383446f7f183600ba27
author Thomas Graf <tgraf@xxxxxxx> Fri, 27 May 2005 14:30:37 +0200
committer Thomas Graf <tgraf@xxxxxxx> Fri, 27 May 2005 14:30:37 +0200
net/sched/sch_dsmark.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
Index: net/sched/sch_dsmark.c
===================================================================
--- 127116412eeedf62fcda0acc882500cd981cbab1/net/sched/sch_dsmark.c
(mode:100644)
+++ 686339fe0d5a70e263d261324365e65f53cc9880/net/sched/sch_dsmark.c
(mode:100644)
@@ -73,8 +73,13 @@
DPRINTK("dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n",sch,p,new,
old);
- if (!new)
- new = &noop_qdisc;
+
+ if (new == NULL) {
+ new = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops);
+ if (new == NULL)
+ new = &noop_qdisc;
+ }
+
sch_tree_lock(sch);
*old = xchg(&p->q,new);
if (*old)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/7] [PKT_SCHED] Fix dsmark to count ignored indices while walking, Thomas Graf |
|---|---|
| Next by Date: | [PATCH 3/7] [PKT_SCHED] Disable dsmark debugging messages by default, Thomas Graf |
| Previous by Thread: | Re: [PATCH 1/7] [PKT_SCHED] Fix dsmark to count ignored indices while walking, David S. Miller |
| Next by Thread: | Re: [PATCH 2/7] [PKT_SCHED] make dsmark try using pfifo instead of noop while grafting, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |