From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] bridge: flush forwarding table when device carrier off Date: Thu, 12 Oct 2006 13:31:23 -0700 Message-ID: <20061012133123.0a37c77d@freekitty> References: <20061012112431.0550b252@dxpl.pdx.osdl.net> <20061012201043.GA29253@gospo.rdu.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: netdev@vger.kernel.org, bridge@osdl.org, "David S. Miller" Return-path: To: Andy Gospodarek In-Reply-To: <20061012201043.GA29253@gospo.rdu.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bridge-bounces@lists.osdl.org Errors-To: bridge-bounces@lists.osdl.org List-Id: netdev.vger.kernel.org On Thu, 12 Oct 2006 16:10:44 -0400 Andy Gospodarek wrote: > On Thu, Oct 12, 2006 at 11:24:31AM -0700, Stephen Hemminger wrote: > > Flush the forwarding table when carrier is lost. This helps for > > availability because we don't want to forward to a downed device and > > new packets may come in on other links. > > = > > Signed-off-by: Stephen Hemminger > > = > = > Stephen, > = > This is an excellent idea and all looks good except this check > = > + if (f->is_static & !do_all) > + continue; > = > should be this: = > = > + if (f->is_static && !do_all) > + continue; > = Agreed, but it probably worked during testing because both flags are strict booleans (ie 0/1) -- = Stephen Hemminger