From owner-freebsd-current Fri Jan 7 10: 9:54 2000 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 7A6B815784 for ; Fri, 7 Jan 2000 10:09:50 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost.freebsd.dk [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id TAA06726; Fri, 7 Jan 2000 19:09:31 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Luigi Rizzo Cc: Patrick Bihan-Faou , freebsd-current@FreeBSD.org Subject: Re: ipfw optimizations In-reply-to: Your message of "Fri, 07 Jan 2000 19:02:33 +0100." <200001071802.TAA05558@info.iet.unipi.it> Date: Fri, 07 Jan 2000 19:09:31 +0100 Message-ID: <6724.947268571@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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