From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 1/2 2.6.25] netns: struct net content re-work (v3) Date: Tue, 11 Dec 2007 04:19:26 -0800 (PST) Message-ID: <20071211.041926.127612929.davem@davemloft.net> References: <20071211115507.GA9947@iris.sw.ru> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20071211115507.GA9947@iris.sw.ru> Sender: netdev-owner@vger.kernel.org To: den@openvz.org Cc: containers@lists.osdl.org, devel@openvz.org, netdev@vger.kernel.org, herbert@gondor.apana.org.au List-Id: containers.vger.kernel.org From: "Denis V. Lunev" Date: Tue, 11 Dec 2007 14:55:07 +0300 > Recently David Miller and Herbert Xu pointed out that struct net becomes > overbloated and un-maintainable. There are two solutions: > - provide a pointer to a network subsystem definition from struct net. > This costs an additional dereferrence > - place sub-system definition into the structure itself. This will speedup > run-time access at the cost of recompilation time > > The second approach looks better for us. Other sub-systems will follow. > > Signed-off-by: Denis V. Lunev > Acked-by: Daniel Lezcano Applied.