From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Miller" Subject: Re: [PATCH] reduce netfilte sk_buff enlargement Date: Tue, 19 Jul 2005 00:23:43 -0700 (PDT) Message-ID: <20050719.002343.26274916.davem@davemloft.net> References: <20050717220451.GB13434@rama.risq.ericsson.ca> <20050718.203145.105430424.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: laforge@netfilter.org, netdev@vger.kernel.org, netfilter-devel@lists.netfilter.org, wensong@linux-vs.org Return-path: To: jengelh@linux01.gwdg.de In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netdev.vger.kernel.org From: Jan Engelhardt Date: Tue, 19 Jul 2005 09:18:38 +0200 (MEST) > >but for now I'll eat that one-bit member. > > What is more important? Being as small as possible using bitfields, or being > as fast as possible? (Usage of bitfields is some CPU overhead for their > extraction) I'm conjuring that we can store the state elsewhere, for example in the SKB ->cb[] control block. But that requires some verifications. Memory access overhead dwarfs whatever the cpu has to do to extract the bits.