From: "john zhou" <john_zhou@hotmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] tc pfifo queue length
Date: Thu, 18 Jul 2002 21:27:36 +0000 [thread overview]
Message-ID: <marc-lartc-102702774727323@msgid-missing> (raw)
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/
next reply other threads:[~2002-07-18 21:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-18 21:27 john zhou [this message]
2002-07-19 1:46 ` [LARTC] tc pfifo queue length Muthukumar Ratty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-102702774727323@msgid-missing \
--to=john_zhou@hotmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.