Difference between qdisc and qdisc_sleeping, netdev_queue

Henrique Rodrigues henriquesilvar at gmail.com
Wed Mar 16 09:52:45 EDT 2011


What is the difference between qdisc and qdisc_sleeping? (in struct
netdev_queue, file include/linux/netdevice.h)

I've been trying to find the answer to this question for a while, but I
didn't succeed.
Does anyone knows why we need both pointers in netdev_queue?

In addition, there are 2 different locks related to these 2 ptrs in
include/net/sch_generic.h: qdisc_root_lock() and qdisc_root_sleeping_lock().
Why we need both?

Thanks,

-- 
Henrique Rodrigues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110316/ec4c7df2/attachment.html 


More information about the Kernelnewbies mailing list