Received: with ECARTIS (v1.0.0; list netdev); Fri, 27 Sep 2002 18:35:04 -0700 (PDT) Received: from pizda.ninka.net (IDENT:root@pizda.ninka.net [216.101.162.242]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g8S1Z2tG027671 for ; Fri, 27 Sep 2002 18:35: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 SAA18313; Fri, 27 Sep 2002 18:28:34 -0700 Date: Fri, 27 Sep 2002 18:28:33 -0700 (PDT) Message-Id: <20020927.182833.66704359.davem@redhat.com> To: yoshfuji@linux-ipv6.org Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com, usagi@linux-ipv6.org, kuznet@ms2.inr.ac.ru Subject: Re: [PATCH] IPv6: Improvement of Source Address Selection From: "David S. Miller" In-Reply-To: <20020928.001742.125874265.yoshfuji@linux-ipv6.org> References: <20020928.001742.125874265.yoshfuji@linux-ipv6.org> 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=iso-2022-jp Content-Transfer-Encoding: 7bit X-archive-position: 369 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: YOSHIFUJI Hideaki / 吉藤英明 Date: Sat, 28 Sep 2002 00:17:42 +0900 (JST) Please redesign this structure. +struct addrselect_attrs { + struct inet6_ifaddr *ifp; + int match; + int deprecated; + int home; + int temporary; + int device; + int scope; + int label; + int matchlen; +}; This is much larger than it needs to be. Please replace these "int" binary states with single "u32 flags;" and appropriate bit definitions. This structure sits on the stack, so it is important to be as small as we can easily make it. Otherwise I have no problems with the patch, Alexey?