Date: Tue, 29 Nov 2005 00:11:01 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_dummynet.c ip_dummynet.h Message-ID: <200511290011.jAT0B1rx032072@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glebius 2005-11-29 00:11:01 UTC
FreeBSD src repository
Modified files:
sys/netinet ip_dummynet.c ip_dummynet.h
Log:
First step in removing welding between ipfw(4) and dummynet.
o Do not use ipfw_insn_pipe->pipe_ptr in locate_flowset(). The
_ipfw_insn_pipe isn't touched by this commit to preserve ABI
compatibility.
o To optimize the lookup of the pipe/flowset in locate_flowset()
introduce hashes for pipes and queues:
- To preserve ABI compatibility utilize the place of global list
pointer for SLIST_ENTRY.
- Introduce locate_flowset(queue nr) and locate_pipe(pipe nr).
o Rework all the dummynet code to deal with the hashes, not global
lists. Also did some style(9) changes in the code blocks that were
touched by this sweep:
- Be conservative about flowset and pipe variable names on stack,
use "fs" and "pipe" everywhere.
- Cleanup whitespaces.
- Sort variables.
- Give variables more meaningful names.
- Uppercase and dots in comments.
- ENOMEM when malloc(9) failed.
Revision Changes Path
1.96 +282 -287 src/sys/netinet/ip_dummynet.c
1.38 +5 -3 src/sys/netinet/ip_dummynet.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511290011.jAT0B1rx032072>
