dummynet.txt (204591) | dummynet.txt (226436) |
---|---|
1# | 1# |
2# $FreeBSD: head/sys/netinet/ipfw/dummynet.txt 204591 2010-03-02 17:40:48Z luigi $ | 2# $FreeBSD: head/sys/netinet/ipfw/dummynet.txt 226436 2011-10-16 14:30:28Z eadler $ |
3# 4 5Notes on the internal structure of dummynet (2010 version) 6by Riccardo Panicucci and Luigi Rizzo 7Work supported by the EC project ONELAB2 8 9 10********* --- 309 unchanged lines hidden (view full) --- 320 321 "sched N config" configures 322 dn_sched N type as desired 323 dn_fs N+NMAX attached to dn_sched N 324 325 326dummynet_task() 327=============== | 3# 4 5Notes on the internal structure of dummynet (2010 version) 6by Riccardo Panicucci and Luigi Rizzo 7Work supported by the EC project ONELAB2 8 9 10********* --- 309 unchanged lines hidden (view full) --- 320 321 "sched N config" configures 322 dn_sched N type as desired 323 dn_fs N+NMAX attached to dn_sched N 324 325 326dummynet_task() 327=============== |
328The dummynet_task() is the the main dummynet processing function and is | 328The dummynet_task() is the main dummynet processing function and is |
329called every tick. This function first calculate the new current time, then 330it checks if it is the time to wake up object from the system_heap comparing 331the current time and the key of the heap. Two types of object (really the 332heap contains pointer to objects) are in the 333system_heap: 334 335- scheduler instance: if a scheduler instance is waked up, the dequeue() 336 function is called until it has credit. If the dequeue() returns packets, --- 524 unchanged lines hidden --- | 329called every tick. This function first calculate the new current time, then 330it checks if it is the time to wake up object from the system_heap comparing 331the current time and the key of the heap. Two types of object (really the 332heap contains pointer to objects) are in the 333system_heap: 334 335- scheduler instance: if a scheduler instance is waked up, the dequeue() 336 function is called until it has credit. If the dequeue() returns packets, --- 524 unchanged lines hidden --- |