patch-2.3.15 linux/net/sched/sch_fifo.c
Next file: linux/net/sched/sch_generic.c
Previous file: linux/net/sched/sch_csz.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Mon Aug 23 10:01:02 1999
- Orig file:
v2.3.14/linux/net/sched/sch_fifo.c
- Orig date:
Sun Mar 21 07:22:00 1999
diff -u --recursive --new-file v2.3.14/linux/net/sched/sch_fifo.c linux/net/sched/sch_fifo.c
@@ -51,14 +51,14 @@
sch->stats.backlog += skb->len;
sch->stats.bytes += skb->len;
sch->stats.packets++;
- return 1;
+ return 0;
}
sch->stats.drops++;
#ifdef CONFIG_NET_CLS_POLICE
if (sch->reshape_fail==NULL || sch->reshape_fail(skb, sch))
#endif
kfree_skb(skb);
- return 0;
+ return NET_XMIT_DROP;
}
static int
@@ -66,7 +66,7 @@
{
__skb_queue_head(&sch->q, skb);
sch->stats.backlog += skb->len;
- return 1;
+ return 0;
}
static struct sk_buff *
@@ -110,21 +110,21 @@
__skb_queue_tail(&sch->q, skb);
sch->stats.bytes += skb->len;
sch->stats.packets++;
- return 1;
+ return 0;
}
sch->stats.drops++;
#ifdef CONFIG_NET_CLS_POLICE
if (sch->reshape_fail==NULL || sch->reshape_fail(skb, sch))
#endif
kfree_skb(skb);
- return 0;
+ return NET_XMIT_DROP;
}
static int
pfifo_requeue(struct sk_buff *skb, struct Qdisc* sch)
{
__skb_queue_head(&sch->q, skb);
- return 1;
+ return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)