From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Sun, 18 Apr 2004 10:05:04 +0000 Subject: Re: [LARTC] When the inside functions of a sfq are called ? Message-Id: <408252D0.9030805@dsl.pipex.com> List-Id: References: <3536.192.193.194.7.1082049009.squirrel@mail.smartcall.ro> In-Reply-To: <3536.192.193.194.7.1082049009.squirrel@mail.smartcall.ro> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Adrian Saileanu wrote: > I read the sched/qdiscs code from kernel source ... and I have some > questions : > > When the .enqueue, .dequeue, .drop, .requeue functions are called ? Do you mean in sfq.c - ie sfq_enqueue etc. Maybe you mean something else. What > is the event that triggers them and how often this event apears ( per > second ? ) ? I don't know as such, but always assumed that when attached to HTB - a packet gets enqueued if there aren't enough (c)tokens to send it and dequeued when there are. As for timing I don't think sfq uses any - it's up to whatever it is attached to. sfq_drop is called from sfq_enqueue when the queue is full. It drops from the longest slot. requeue - don't know. Andy. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/