Date: Fri, 07 Jan 2000 19:09:31 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Luigi Rizzo <luigi@info.iet.unipi.it> Cc: Patrick Bihan-Faou <patrick@mindstep.com>, freebsd-current@FreeBSD.org Subject: Re: ipfw optimizations Message-ID: <6724.947268571@critter.freebsd.dk> In-Reply-To: Your message of "Fri, 07 Jan 2000 19:02:33 %2B0100." <200001071802.TAA05558@info.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200001071802.TAA05558@info.iet.unipi.it>, Luigi Rizzo writes: >> One of the things I would do to optimize ipfw is: >> - instead of keeping one list with all the rules, split the list (the >> internal one) by interface and by direction (one list for ed1 incoming, >> one list for ed1 outgoing, etc.). > >one skipto rule is enough to switch between two rulesets depending >on direction, so this is not really worthwhile. >I agree that having a `switch' type of rule for selecting interfaces >would be a reasonable gain of efficiency (but then again.. how >many interfaces is one using!) I still think we should split the current "one huge list of rules" into several lists: Two lists per interface: one list of rules for inbound packets one list of rules for outbound packets Two lists for the IP stack: one list of rules for incoming packets one list of rules for outgoing packets One list for forwarding of packets. in theory one could also: Two lists for the UDP stack: one list of rules for incoming packets one list of rules for outgoing packets Two lists for the TCP stack: one list of rules for incoming packets one list of rules for outgoing packets -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6724.947268571>