Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3296964pxb; Tue, 19 Jan 2021 20:29:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKG6MfBIkvyZnZ2jI1hMKdrRZvl+YPGdmSPZBnLjVuaZ8kro5D7d87tcAQ8MMMzAVlGMmj X-Received: by 2002:a05:6402:4c1:: with SMTP id n1mr5867664edw.66.1611116996534; Tue, 19 Jan 2021 20:29:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611116996; cv=none; d=google.com; s=arc-20160816; b=xtxRv/oODaXXNTQ/rDVgqkLbRDoE7pJX+zfBBrmXYjcIZqKHMGHgILomBKFH3tINiF qktXdAfn2qjfetz6oYquduLbaUbRI3Aef77FOw9vtc0+w5Ebai7pXfTalMxFfYvC9z0J rY2dNrQAoerX93ffBmnwtqhntHuMHWWpEbdUWmyf9+YolS+ZisH+RYtdmXM9N9BXq+Ct JiMR808iRS/l5wgZ84rmIc3n/QgooEETtRus4wvQkKJ2AgsG+/bKOevg2Ev5YCKI2hN5 o0ysLyVOcpEtXr0XAe4TM29sLqAHM25Q57qNdFu5JvF9qIXTfGMe4w9eCX9SlJWtzWi6 7W8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=GP6CcfjV/nEcKJK3Rxlv4zO7l7XOzbH7ZH19Z8QJF8E=; b=H4ge9xGqtf0Ne9UbeweRHZJxQ5aE6wjaElbmkESFMZebllK1mL0ruC7TZiZOIPdd7T Z/3twWzB3QxuRrR6VqDA8DObUZrzczeh2+YngnrEicDzjESbvi1dogKdBgCn2qnrw5Nw oa6xCTmd/HKrtAly3F58nrETHxV8tdBXPBOXT2aq/Y0v6Sdiuaa/9/CKrxMFrGwjuXp7 ZkPuhkNZe+renEVSfKy3iGosF/sDIk4I+BtOHg71rWZeIZ/lz87TCdnbQf49YqUAZGUa AOoH2P85NoIkWCCS5sRDLmjLJnXnZDssZ5bJieaE1mCO1LQ/uicWoeOLFOg0CiSLF+ZQ HZZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vcth5JiS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pw15si289155ejb.567.2021.01.19.20.29.32; Tue, 19 Jan 2021 20:29:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vcth5JiS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731579AbhATEZS (ORCPT + 99 others); Tue, 19 Jan 2021 23:25:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbhATEXa (ORCPT ); Tue, 19 Jan 2021 23:23:30 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BEC1C061575; Tue, 19 Jan 2021 20:22:43 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id x71so7931656oia.9; Tue, 19 Jan 2021 20:22:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=GP6CcfjV/nEcKJK3Rxlv4zO7l7XOzbH7ZH19Z8QJF8E=; b=Vcth5JiSXjuEHV3SJWLTc9nv/u3U5+IPgeWg9LYr2lj7oCtkjGxId8yuC5GIa4rw9h q3oIvUyQHXsbeBV1dgvUKkROI2nVhlN9aFhr+iB/DW+2QVG8TivGlMoYzlcG09cCNA62 vKIRA06CBPIG1i7tkFwPI5sjiIZA7Xrj6QjL90opwNum4WTc8vXUbx392ZwVca9xmH0K eK7hX5gDGKnUhK3L+lzlnXqqMNpf66YbfyTBtV8vH2d2f7j5bWQ9eWtgp43RUsdqYr3O p/RyRtcPn77FOgCRW1VCP3M1VRVVQFAIKxPizO/SMELy0YkoQHHcg/u5c+rgcroC9onH IOvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GP6CcfjV/nEcKJK3Rxlv4zO7l7XOzbH7ZH19Z8QJF8E=; b=PzjCwiQbLrY4UUSR6TVozfLwnCN/81IVYlWayfcpAP063WFnfZ5Y80kUrUcsTZez/A umQ5ytsAo441XJfn4KnE/1UA1vo9jyxy4s0DYSAYtbI4gt9fxtJh8CNDc9/S3QRg5BMB qG9ihCVmn8gbYx6vB2M6a8tGd5Woxhc5WwJLyiZsJFh89KbgThIzIgJp1IIdtltNeSG9 Rb23OYtCd18jsCQqCzUEw/ruL42yJ5TXR8vdRsLDepesKwRV6V2pVpC38NOGd+5Tfbeb p2R0y8vSoX81AJsw9EBBfbbYQEOLIP7M0yHjTTjAdQ6AEY1lXswdSeGFOcK/dGtJMkid NiBw== X-Gm-Message-State: AOAM5313yo2kFI1wheJv4pF+74URom7LBohO43lb9MaMd6oPlo3EX9km 1GN9Bjd+gFp//v3qF+BmCv8= X-Received: by 2002:aca:be54:: with SMTP id o81mr1806904oif.67.1611116562271; Tue, 19 Jan 2021 20:22:42 -0800 (PST) Received: from Davids-MacBook-Pro.local ([8.20.123.12]) by smtp.googlemail.com with ESMTPSA id f3sm185743otq.42.2021.01.19.20.22.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Jan 2021 20:22:41 -0800 (PST) Subject: Re: [PATCH v2 net-next 1/1] Allow user to set metric on default route learned via Router Advertisement. To: praveen chaudhary Cc: davem@davemloft.net, kuba@kernel.org, corbet@lwn.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenggen Xu References: <20210115080203.8889-1-pchaudhary@linkedin.com> <0f64942e-debd-81bd-b29c-7d2728a5bd4b@gmail.com> From: David Ahern Message-ID: <7839be40-6555-3e5a-3459-c3f0e4726795@gmail.com> Date: Tue, 19 Jan 2021 21:22:40 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/19/21 3:17 PM, praveen chaudhary wrote: >>> ---------------------------------------------------------------- >>> For IPv4: >>> ---------------------------------------------------------------- >>> >>> Config in etc/network/interfaces >>> ---------------------------------------------------------------- >>> ``` >>> auto eth0 >>> iface eth0 inet dhcp >>> metric 4261413864 >> >> how does that work for IPv4? Is the metric passed to the dhclient and it >> inserts the route with the given metric or is a dhclient script used to >> replace the route after insert? >> >> > > Yes, DHCP client picks config under “iface eth0 inet dhcp” line and if metric is configured, then it adds the metric for all added routes. As I recall ifupdown{2} forks dhclient as a process to handle dhcp config, and I believe there is a script that handles adding the default route with metric. Meaning ... it is not comparable to an RA. > > Thanks a lot again for spending time for this Review, > This feature will help SONiC OS [and others Linux flavors] for better IPv6 support, so thanks again. I think SONiC is an abomination, so that is definitely not the motivation for my reviews. :-)