CVSROOT: /cvs Module name: src Changes by: [EMAIL PROTECTED] 2008/07/03 09:46:24
Modified files: sys/net : pf.c pfvar.h sys/netinet : in_pcb.c in_pcb.h tcp_input.c tcp_output.c Log message: link pf state keys to tcp pcbs and vice versa. when we first do a pcb lookup and we have a pointer to a pf state key in the mbuf header, store the state key pointer in the pcb and a pointer to the pcb we just found in the state key. when either the state key or the pcb is removed, clear the pointers. on subsequent packets inbound we can skip the pcb lookup and just use the pointer from the state key. on subsequent packets outbound we can skip the state key lookup and use the pointer from the pcb. about 8% speedup with 100 concurrent tcp sessions, should help much more with more tcp sessions. ok markus ryan