cvs commit: src/sys/net/ipfw ip_fw2.c ip_fw2.h src/sys/net/dummynet ip_dummynet.c ip_dummynet.h

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Nov 6 06:43:53 PST 2007


sephe       2007/11/06 06:42:52 PST

DragonFly src repository

  Modified files:
    sys/net/ipfw         ip_fw2.c ip_fw2.h 
    sys/net/dummynet     ip_dummynet.c ip_dummynet.h 
  Log:
  - Use hash table for pipes and flow set, which accelerates flow set looking up
    in dummynet_io().  This should be fast enough so that we don't need to cache
    the searching result in ipfw(4) pipe/queue rule's pipe_ptr field.  This also
    further decouples dummynet(4) and ipfw(4).
  - Nuke flush_pipe_ptrs() after above change.
  - Use queue(3) for linked list.
  
  Revision  Changes    Path
  1.37      +0 -20     src/sys/net/ipfw/ip_fw2.c
  1.7       +0 -2      src/sys/net/ipfw/ip_fw2.h
  1.46      +276 -218  src/sys/net/dummynet/ip_dummynet.c
  1.15      +10 -4     src/sys/net/dummynet/ip_dummynet.h


http://www.dragonflybsd.org/cvsweb/src/sys/net/ipfw/ip_fw2.c.diff?r1=1.36&r2=1.37&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/ipfw/ip_fw2.h.diff?r1=1.6&r2=1.7&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/dummynet/ip_dummynet.c.diff?r1=1.45&r2=1.46&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/net/dummynet/ip_dummynet.h.diff?r1=1.14&r2=1.15&f=u





More information about the Commits mailing list