What is drop in Qdisc_ops for?
Hi,
What is the operation drop() in Qdisc_ops for? What are the requirements on a new qdisc?
As far as I can tell, the classfull qdiscs just pass it on to child qdiscs and classless qdiscs drop the most recently queued packet. I can't find any code that initiates all this though.
The operation is not described in the comments in sch_api.c where enqueue, dequeue, requeue, reset, init, destroy & change are described (dump isn't described either).
Chris.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Chris,
Have you discovered the following source of documentation on the QoS APIs for linux, yet?
http://qos.ittc.ukans.edu/howto/index.html
: What is the operation drop() in Qdisc_ops for?
Well, from the userland perspective, drop is just like a netfilter -j DROP. Essentially we are saying "throw that packet away".
: What are the requirements on a new qdisc?
/me retreats to userland, maybe the link above will provide an answer.
: As far as I can tell, the classfull qdiscs just pass it on to child : qdiscs and classless qdiscs drop the most recently queued packet. I : can't find any code that initiates all this though.
Again, try the above documentation.
: The operation is not described in the comments in sch_api.c where : enqueue, dequeue, requeue, reset, init, destroy & change are described : (dump isn't described either).
Here's a little bit on dump.
http://qos.ittc.ukans.edu/howto/node16.html
Good luck,
-Martin
Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
The description of drop given doesn't make sense. It says that it is required for qdiscs such as RED which need to drop packets. However, the RED code drops packets in enqueue (by not queuing them), not by making the system call the drop op. I can't find any code that calls the drop op, except for the classfull qdiscs which are just propagating the call to the child qdiscs.
Chris.
----- Original Message -----
From: "Martin A. Brown" <[email protected]>
To: "Chris Paulson-Ellis" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, August 07, 2003 1:25 PM
Subject: Re: [LARTC] What is drop in Qdisc_ops for?
Quoted 27 lines
Chris,
Have you discovered the following source of documentation on the QoS APIs for linux, yet?
http://qos.ittc.ukans.edu/howto/index.html
: What is the operation
drop()inQdisc_opsfor?Well, from the userland perspective, drop is just like a netfilter -j DROP. Essentially we are saying "throw that packet away".
: What are the requirements on a new qdisc?
/me retreats to userland, maybe the link above will provide an answer.
: As far as I can tell, the classfull qdiscs just pass it on to child : qdiscs and classless qdiscs drop the most recently queued packet. I : can't find any code that initiates all this though.
Again, try the above documentation.
: The operation is not described in the comments in
sch_api.cwhere : enqueue, dequeue, requeue, reset, init, destroy & change are described : (dump isn't described either).
Quoted 12 lines
Here's a little bit on dump.
http://qos.ittc.ukans.edu/howto/node16.html
Good luck,
-Martin
Signature · 1 line
Martin A. Brown --- SecurePipe, Inc. --- [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/