diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-06-11 02:46:36 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-06-11 02:46:36 +0000 |
commit | b109f49576cfdace334edadcae3f91a9a636033d (patch) | |
tree | 8b1af87137c737bbcc4f6c4ae77762da8599f3fd /usr.sbin/dhcpd/inet.c | |
parent | 5739b8928a4f63a5b2481383b7afc7076973606d (diff) |
store a pointer to the stack side state key in the mbuf packet
header inbound. on the outbound side, we take that and look for the key
that is the exact opposite, and store that mapping in the state key. on
subsequent packets we don't have to do the lookup on outbound any more.
almost unable to get real benchmarks going here, we know for sure this
gives a more than 5% increase in forwarding performance.
many thanks to ckuethe for stress- and performance-testing.
ok ryan theo
Diffstat (limited to 'usr.sbin/dhcpd/inet.c')
0 files changed, 0 insertions, 0 deletions