From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5804D46AB for ; Mon, 28 Aug 2023 15:06:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68C17C433C7; Mon, 28 Aug 2023 15:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693235186; bh=JWQLXxjSFyLZsLLKMkWVkDZfdWptll95kqHsbPlqozA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=bgkICEZGvC6SiLvsbSKk+gX+L+B8Js2mGisqW1n2x0zNpTe9PXfP+PRvu3hg0H1mb 2keLEQd7zq8ZtVSo/LnBdl8o+eL5Ryu9FBYlsP8J7PCwY6J4BJ/9mmwjkKAQEgtuQx uJ+wfODWWXdHBpUUC4U5kfNAshUeVB1Sbxq6k7dhucAIAJiWB1lVYYztCdfI1NjPRA /vodk4e8CEc/uElNoHiTMamAWNkFo+BGJVKDko/nDAY3Atm/7tIntY0mo3+qdcnySi jFa2ahnfDclpuUJNSAQzn4ahjTXOsRQLC+njY2EgZXo3RAhst3czGZnnnIbIxc3S/f tFfPazDEgPofA== Message-ID: <078061ce-1411-d150-893a-d0a950c8866f@kernel.org> Date: Mon, 28 Aug 2023 09:06:25 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [Questions] Some issues about IPv4/IPv6 nexthop route To: Hangbin Liu , Ido Schimmel Cc: Stephen Hemminger , netdev@vger.kernel.org, "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Haller References: <20230724084820.4aa133cc@hermes.local> Content-Language: en-US From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 8/28/23 1:53 AM, Hangbin Liu wrote: > On Thu, Jul 27, 2023 at 05:45:02PM +0300, Ido Schimmel wrote: >>> Since the route are not merged, the nexthop weight is not shown, which >>> make them look like the same for users. For IPv4, the scope is also >>> not shown, which look like the same for users. >> >> The routes are the same, but separate. They do not form a multipath >> route. Weight is meaningless for a non-multipath route. >> >>> But there are 2 issues here: >>> 1. the *type* and *protocol* field are actally ignored >>> 2. when do `ip monitor route`, the info dumpped in fib6_add_rt2node() >>> use the config info from user space. When means `ip monitor` show the >>> incorrect type and protocol >>> >>> So my questions are, should we show weight/scope for IPv4? > > Here is the first one. As the weight/scope are not shown, the two separate > routes would looks exactly the same for end user, which makes user confused. Asked and answered many times above: Weight has no meaning on single path routes; it is not even tracked if I recall correctly. > So why not just show the weight/scope, or forbid user to add a non-multipath > route with weight/scope? That is a change to a uAPI we can not do at this point. > >>> How to deal the type/proto info missing for IPv6? > > What we should do for this bug? The type/proto info are ignored when > merge the IPv6 nexthop entries. I need more information; this thread has gone on for a long time now.