* [LARTC] tc pfifo queue length
@ 2002-07-18 21:27 john zhou
2002-07-19 1:46 ` Muthukumar Ratty
0 siblings, 1 reply; 2+ messages in thread
From: john zhou @ 2002-07-18 21:27 UTC (permalink / raw)
To: lartc
hi,
when I read following part in sch_fifo.c, in pfifo_enqueue:
static int
105 pfifo_enqueue(struct sk_buff *skb, struct Qdisc* sch)
106 {
107 struct fifo_sched_data *q = (struct fifo_sched_data *)sch->data;
108
109 if (sch->q.qlen <= q->limit) {
110 __skb_queue_tail(&sch->q, skb);
111 sch->stats.bytes += skb->len;
112 sch->stats.packets++;
113 return 0;
114 }
115 sch->stats.drops++;
116 #ifdef CONFIG_NET_CLS_POLICE
117 if (sch->reshape_fail=NULL || sch->reshape_fail(skb, sch))
118 #endif
119 kfree_skb(skb);
120 return NET_XMIT_DROP;
After enqueue, sch->q.qlen++ should be there, why in above part no this
kind of sentence, sch->q.qlen updated in other place???
in bfifo, sch->stats.backlog += skb->len exists.
please give some suggestion, thanks.
John Zhou
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-19 1:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-18 21:27 [LARTC] tc pfifo queue length john zhou
2002-07-19 1:46 ` Muthukumar Ratty
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.