From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net-next 3/3] net: Add table id from route lookup to route response Date: Wed, 2 Sep 2015 12:51:50 -0600 Message-ID: <55E74546.4070501@cumulusnetworks.com> References: <1441212034-37464-1-git-send-email-dsa@cumulusnetworks.com> <1441212034-37464-3-git-send-email-dsa@cumulusnetworks.com> <20150902184346.GB20527@pox.localdomain> <20150902.114914.1705777375118723461.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: David Miller , tgraf@suug.ch Return-path: Received: from mail-ig0-f169.google.com ([209.85.213.169]:33863 "EHLO mail-ig0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876AbbIBSvx (ORCPT ); Wed, 2 Sep 2015 14:51:53 -0400 Received: by igcpb10 with SMTP id pb10so32797248igc.1 for ; Wed, 02 Sep 2015 11:51:52 -0700 (PDT) In-Reply-To: <20150902.114914.1705777375118723461.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On 9/2/15 12:49 PM, David Miller wrote: > From: Thomas Graf > Date: Wed, 2 Sep 2015 20:43:46 +0200 > >> On 09/02/15 at 09:40am, David Ahern wrote: >>> rt_fill_info which is called for 'route get' requests hardcodes the >>> table id as RT_TABLE_MAIN which is not correct when multiple tables >>> are used. Use the newly added table id in the rtable to send back >>> the correct table. >>> >>> Signed-off-by: David Ahern >> >> What RTM_GETROUTE returns is not the actual route but a description >> of the routing decision which is why table id, scope, protocol, and >> prefix length are hardcoded. This is indicated by the RTM_F_CLONED >> flag. What you propose would break userspace ABI. > > Agreed, I don't think we can do this. > Doesn't the table used to come up with the decision matter for IPv4? ie., hardcoding to MAIN is misleading when there is absolutely no way the decision comes from that table. IPv6 already returns the table id. Or is your response that it breaks ABI and hence not going to fix.