From owner-freebsd-net Wed May 20 03:20:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA05827 for freebsd-net-outgoing; Wed, 20 May 1998 03:20:53 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA05818 for ; Wed, 20 May 1998 03:20:43 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id KAA06701; Wed, 20 May 1998 10:20:39 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id MAA04711; Wed, 20 May 1998 12:20:38 +0200 (MET DST) Message-ID: <19980520122038.42758@follo.net> Date: Wed, 20 May 1998 12:20:38 +0200 From: Eivind Eklund To: Luigi Rizzo Cc: net@FreeBSD.ORG Subject: Re: struct ifnet handling... References: <19980520001008.55413@follo.net> <199805200751.JAA11403@labinfo.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199805200751.JAA11403@labinfo.iet.unipi.it>; from Luigi Rizzo on Wed, May 20, 1998 at 09:51:04AM +0200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, May 20, 1998 at 09:51:04AM +0200, Luigi Rizzo wrote: > > > but "chains" can be emulated with relative ease and efficiency > > > using optimized SKIPTO instructions. > > > > Are you talking about automatically or by the user? If you're talking > > the "otimization" i am talking about is replacing rule numbers with > pointers so that there is no need to scan the whole database each time. > This is done automatically in my code, and the user knows nothing about > it. That's only a tiny change in the implementation - not too interesting from the perspective of doing optimal rulesets (though it _is_ interesting for using the present implementation - it was a very necessary optimization there). > I am not considering more sophisticated optimizations like 'hmmm this > test was done earlier so let's just skip it'. These are the optimizations I'm considering, mostly. And "let's add test e which will distinguish whether to run test a&b or test c&d'. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message