diff options
author | luigi <luigi@FreeBSD.org> | 2001-01-16 23:49:49 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2001-01-16 23:49:49 +0000 |
commit | e09ccfbadf49830d7b65cd0d399f94cdbc4b7310 (patch) | |
tree | c0b9671627b4a2deb573add6606caa1d8735c7fe /sys/netinet/ip_dummynet.h | |
parent | 08e0bb10670d95a35e5a9ced7a9749cc5b305ee0 (diff) | |
download | FreeBSD-src-e09ccfbadf49830d7b65cd0d399f94cdbc4b7310.zip FreeBSD-src-e09ccfbadf49830d7b65cd0d399f94cdbc4b7310.tar.gz |
Some dummynet patches that I forgot to commit last summer.
One of them fixes a potential panic when bridging is used and
you run out of mbufs (though i have no idea if the bug has
ever hit anyone).
Diffstat (limited to 'sys/netinet/ip_dummynet.h')
-rw-r--r-- | sys/netinet/ip_dummynet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/ip_dummynet.h b/sys/netinet/ip_dummynet.h index 9105e967..504995a 100644 --- a/sys/netinet/ip_dummynet.h +++ b/sys/netinet/ip_dummynet.h @@ -166,6 +166,9 @@ struct dn_flow_queue { dn_key sched_time ; /* current time when queue enters ready_heap */ dn_key S,F ; /* start-time, finishing time */ + /* setting F < S means the timestamp is invalid. We only need + * to test this when the queue is empty. + */ } ; struct dn_flow_set { @@ -242,6 +245,7 @@ struct dn_pipe { /* a pipe */ struct dn_heap scheduler_heap ; /* top extract - key Finish time*/ struct dn_heap not_eligible_heap; /* top extract- key Start time */ struct dn_heap backlogged_heap ; /* random extract - key Start time */ + struct dn_heap idle_heap ; /* random extract - key Start=Finish time */ dn_key V ; /* virtual time */ int sum; /* sum of weights of all active sessions */ |