parallelizing ipfw table
Andre Oppermann
andre at freebsd.org
Tue Nov 29 15:36:16 GMT 2005
Gleb Smirnoff wrote:
> On Mon, Nov 28, 2005 at 06:04:50PM +0100, Max Laier wrote:
> M> I remember that we had an extensive discussion about this around
> M> FreeBSD-SA-05:13.ipfw - the bottom line seems to be: either parallel or
> M> cacheing. Stack storage should work as well.
>
> The cacheing is a good idea when one table is looked up several times
> for one packet. The above proposal eliminates need for such rulesets.
> And thus we can work towards parallelizm.
The ipfw tables are protected by the ipfw lock. So this parallel lookup
Gelb has in his patch works fine and doesn't have any races.
No caching between packets can be done without extra locks. Only caching
between rules can be done by saving the result on the stack. The result
must not be accessed anymore once the ipfw lock has been given up.
--
Andre
More information about the freebsd-net
mailing list