Commit 981193ab authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Linus Torvalds

[PKT_SCHED]: Delay scheduler enqueue always succeeds.

If underlying fifo enqueue fails, return the status not 0.
Same patch should apply to both 2.6 and 2.4
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 171faae1
...@@ -69,7 +69,7 @@ static int dly_enqueue(struct sk_buff *skb, struct Qdisc *sch) ...@@ -69,7 +69,7 @@ static int dly_enqueue(struct sk_buff *skb, struct Qdisc *sch)
sch->stats.bytes += skb->len; sch->stats.bytes += skb->len;
sch->stats.packets++; sch->stats.packets++;
} }
return 0; return ret;
} }
/* Requeue packets but don't change time stamp */ /* Requeue packets but don't change time stamp */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment