| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH] (1/4) delay scheduler enqueue always succeeds. |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Thu, 17 Jun 2004 15:57:35 -0700 |
| Cc: | netdev@xxxxxxxxxxx, lartc@xxxxxxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
If underlying fifo enqueue fails, return the status not 0.
Same patch should apply to both 2.6 and 2.4
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/net/sched/sch_delay.c b/net/sched/sch_delay.c
--- a/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00
+++ b/net/sched/sch_delay.c 2004-06-17 15:13:15 -07:00
@@ -69,7 +69,7 @@
sch->stats.bytes += skb->len;
sch->stats.packets++;
}
- return 0;
+ return ret;
}
/* Requeue packets but don't change time stamp */
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH] (3/4) delay scheduler race with device stopped, Stephen Hemminger |
|---|---|
| Next by Date: | [RFT] netif_queue_stopped in TBF scheduler, Stephen Hemminger |
| Previous by Thread: | Re: [PATCH] (1/4) delay scheduler enqueue always succeeds., David S. Miller |
| Next by Thread: | [PATCH] (2/4) delay scheduler - retry if requeue fails, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |