Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbVKENqR (ORCPT ); Sat, 5 Nov 2005 08:46:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750863AbVKENqR (ORCPT ); Sat, 5 Nov 2005 08:46:17 -0500 Received: from postel.suug.ch ([195.134.158.23]:38821 "EHLO postel.suug.ch") by vger.kernel.org with ESMTP id S1750830AbVKENqQ (ORCPT ); Sat, 5 Nov 2005 08:46:16 -0500 Date: Sat, 5 Nov 2005 14:46:36 +0100 From: Thomas Graf To: Patrick McHardy Cc: Brian Pomerantz , netdev@vger.kernel.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@coreworks.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [IPV4] Fix secondary IP addresses after promotion Message-ID: <20051105134636.GS23537@postel.suug.ch> References: <20051104184633.GA16256@skull.piratehaven.org> <436BFE08.6030906@trash.net> <20051105010740.GR23537@postel.suug.ch> <436C090D.5020201@trash.net> <436C34F8.3090903@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436C34F8.3090903@trash.net> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1314 Lines: 26 * Patrick McHardy 2005-11-05 05:28 > The reason why all routes are deleted is because their prefered > source addresses is the primary address. fn_flush_list should > probably send the missing notifications for the deleted routes. > Changing address promotion to not delete the other routes at all > looks extremly complicated, I think just fixing it to behave > correctly is good enough (which my patch didn't do entirely, > I'll send a new one this weekend). Yes, fib_sync_down(), but even when I remove the code setting RTNH_F_DEAD I still see _some_ local routes disappearing which I cannot explain right now. I can only reproduce this with !CONFIG_IP_MULTIPLE_TABLES though. Assuming this is a separate bug, I'm not sure if this is the right way to fix it. I think it would be better to rewrite the preferred source address of all related local routes and only perform a remove-and-add on the secondary address being promoted. _If_ we let them die, we should announce it in fib_sync_down() rather then in the algorithm specific flush routines. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/