Add L2 L3 Cache lookup by default.

- Import infrastructure for caching flows as a means of accelerating L3 and L2 lookups
   as well as providing stateful load balancing when used with RADIX_MPATH.
 - Currently compiled in to i386 and amd64 but disabled by default, it can be enabled at
   runtime with 'sysctl net.inet.flowtable.enable=1'.

 - Embedded users can remove it entirely from the kernel by adding 'nooption FLOWTABLE' to
   their kernel config files.

 - A minimal hookup will be added to ip_output in a subsequent commit. I would like to see
   more review before bringing in changes that require more churn.
This commit is contained in:
Scott Ullrich 2009-06-09 22:38:19 -04:00
parent 59c0a6708e
commit 4ebd717767

View File

@ -134,7 +134,12 @@
<desc>TCP Offload Engine - BCE</desc>
<tunable>hw.bce.tso_enable</tunable>
<value>0</value>
</item>
</item>
<item>
<desc>Enable accelerating of L3 and L2 lookups</desc>
<tunable>net.inet.flowtable.enable</tunable>
<value>1</value>
</item>
</sysctl>
<system>
<optimization>normal</optimization>