From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Frederic Sowa Subject: Re: [PATCH net-next] net: change fib behavior based on interface link status Date: Wed, 03 Jun 2015 22:04:06 +0200 Message-ID: <1433361846.719897.286115305.0CA7D2AA@webmail.messagingengine.com> References: <1433300839-18511-1-git-send-email-gospo@cumulusnetworks.com> <20150603182718.GK588@gospo.home.greyhouse.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Netdev , "David S. Miller" , ddutt@cumulusnetworks.com To: Andy Gospodarek , Scott Feldman Return-path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:60116 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372AbbFCUEJ (ORCPT ); Wed, 3 Jun 2015 16:04:09 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 99EBE21A1E for ; Wed, 3 Jun 2015 16:04:06 -0400 (EDT) In-Reply-To: <20150603182718.GK588@gospo.home.greyhouse.net> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jun 3, 2015, at 20:27, Andy Gospodarek wrote: > On Wed, Jun 03, 2015 at 11:15:55AM -0700, Scott Feldman wrote: > > On Tue, Jun 2, 2015 at 8:07 PM, Andy Gospodarek > > wrote: > > > This feature is only enabled with the new sysctl set (default is off): > > > net.core.kill_routes_on_linkdown = 1 > > > > One more thing, sorry. This feature is typically implemented today in > > user-space on a per-interface basis. The example I'm thinking of is > > Quagga's "link-detect" directive which goes on an interface. Should > > this be a bool on each interface in systcl? That would let user not > > enable on selected interfaces. > That would not be my preference. > > I'm willing to investigate the per-namespace support if Hannes would > like and add switchdev support for v2, but would prefer this not become > that granular. Actually, this idea also came to my mind: flagging specific routes if they are eligible to suppress if the link is down. Bye, Hannes