Received: with ECARTIS (v1.0.0; list netdev); Sat, 14 Jun 2003 20:07:07 -0700 (PDT) Received: from pizda.ninka.net (IDENT:root@pizda.ninka.net [216.101.162.242]) by oss.sgi.com (8.12.9/8.12.9) with SMTP id h5F3722x028312 for ; Sat, 14 Jun 2003 20:07:02 -0700 Received: from localhost (IDENT:davem@localhost.localdomain [127.0.0.1]) by pizda.ninka.net (8.9.3/8.9.3) with ESMTP id UAA05782; Sat, 14 Jun 2003 20:03:03 -0700 Date: Sat, 14 Jun 2003 20:03:03 -0700 (PDT) Message-Id: <20030614.200303.71094694.davem@redhat.com> To: ak@suse.de Cc: netdev@oss.sgi.com Subject: Re: [PATCH] Make xfrm subsystem optional From: "David S. Miller" In-Reply-To: <20030614183232.GB23546@wotan.suse.de> References: <20030614101851.GA24170@wotan.suse.de> <20030614.042636.74749587.davem@redhat.com> <20030614183232.GB23546@wotan.suse.de> X-FalunGong: Information control. X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 3248 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: davem@redhat.com Precedence: bulk X-list: netdev From: Andi Kleen Date: Sat, 14 Jun 2003 20:32:32 +0200 On Sat, Jun 14, 2003 at 04:26:36AM -0700, David S. Miller wrote: > From: Andi Kleen > Date: Sat, 14 Jun 2003 12:18:51 +0200 > > Allocating it at first lookup would be racy (would need a nasty > spinlock at least). It may be possible at first policy setup, but > it's not guaranteed you can still get two 32K continuous areas. You > could fall back to vmalloc I guess. > > Andi, you're getting rediculious. Add a xfrm_whatever_init() call > and allocate the table there. Did you actually read what I wrote? Allocating on init is useless from the bloat perspective because it's 100% equivalent to an BSS allocation. If dynamic, you could allocate a "tiny" hash table or whatever on bootup and grow it as usage increases, much like we grow the FIB hashes dynamically.