Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1979106pxb; Sat, 23 Jan 2021 12:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHy+ayiaNaplmhIZA/0bQCPgfinNmjh1iqLAYJM7Gm2dIlohwJbVge7tY4jaiD16aJ94Sl X-Received: by 2002:a50:9dc3:: with SMTP id l3mr163870edk.198.1611432296988; Sat, 23 Jan 2021 12:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611432296; cv=none; d=google.com; s=arc-20160816; b=j6gd2JZxfG0jJBm0MfRo+p8aVFgqg7h7K6Q8WHhRcTVXcmGL3eErAiAj6QbZ44iKY9 qQRMMnIA6bA2Z8RWTD4G58NMQdZRuIVv4G/dCVKitTIgKDQSJ9dcuzzOPlC3zBeLusoU muDeAvSQo5bMhDNzC5pBAO8tOxusg90q2B3vuUk3bM/fVJ29uo3ZMxVqadiKuswpYJfW cYY1BIGtzvDWapFiG4J1T/3oTMf8w3LPNP1KxmMuY0Rbc4BjtzkkZFrCwz8oAX3Qd3iQ AW4rr6+WgIZffrq4Wxpk9ZDLYQE1Br17s76uKT/2NtvSyP+atYCM9S7dcJyarzWYo79Y sBMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2gXrf4xx4NEWR6+9LUSPcv66UdEbV9WUYwRBiyW/sC4=; b=t241Xxw1dQFdfUFFELQ9l9lnOum+8hwuc2hEwkZaXsg+xSidK+Dw6umxEv9eVtS8l3 ANZ087oP93GoKu5gC9Y//BoawFrNOhPRk1wdr/rbmwjq4OoKg22JLbG4ryJI/V1hoMZK H0LXOArka9yVy2u9CZB03LN/J4JZamEd3VcjObtCwjIwK98Y77y5ETMMia+h7kXVB5Az XcjLxGHhFtxVqMjvQzrFu+XZ51uG9og/D9LLJxk8o+VDHZ/O99CiQkJKhbUF+Rgxq01p ls55NuUTRGtcWPXSsFhX3By2d6qSHrxr0784xeacsa7J4xkDU9m27Czhk+k97mMT9PoV 8nPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AqdtoHBO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si4001993edx.44.2021.01.23.12.04.33; Sat, 23 Jan 2021 12:04: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=@kernel.org header.s=k20201202 header.b=AqdtoHBO; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726456AbhAWUCD (ORCPT + 99 others); Sat, 23 Jan 2021 15:02:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:43428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbhAWUAn (ORCPT ); Sat, 23 Jan 2021 15:00:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A6CE22D2B; Sat, 23 Jan 2021 20:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611432003; bh=2gXrf4xx4NEWR6+9LUSPcv66UdEbV9WUYwRBiyW/sC4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AqdtoHBOQ8QdrD0YNVscf19f7cfJM9dWB2HlbiPzBC4Hr8z88pG866AvFpaqjOttE tF2T6aUkVEn3Is335dH4S58A0aC3S9TMW505YdPczXhjUtljXLfX98vd1SeYIG+Ziz dXSBsdlqr6FrvUJLYOafEOGl3ii18h8/0rfsWLRf0xdDFWzMVRsPEJEdoINkg5M3On 5+IkKaIcjKOiPxc7vEsL4mXOh1qLpdaKQh8HdcXq6cZSOjJaCXZe4ihnNerqyGn4Q4 iVkg2PgZdSaXeu+I4I28Sj2U3bmBo196D8JdrvJwLcx8JlvX0H4OnzWHM6fNASgTUn FyqDl6lLlEJKQ== Date: Sat, 23 Jan 2021 12:00:01 -0800 From: Jakub Kicinski To: David Ahern Cc: Maciej =?UTF-8?B?xbtlbmN6eWtvd3NraQ==?= , Praveen Chaudhary , David Miller , corbet@lwn.net, Alexey Kuznetsov , Hideaki Yoshifuji , Linux NetDev , linux-doc@vger.kernel.org, Linux Kernel Mailing List , Zhenggen Xu Subject: Re: [PATCH v3 net-next 1/1] Allow user to set metric on default route learned via Router Advertisement. Message-ID: <20210123120001.50a3f676@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210119212959.25917-1-pchaudhary@linkedin.com> <1cc9e887-a984-c14a-451c-60a202c4cf20@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Jan 2021 22:16:41 -0700 David Ahern wrote: > On 1/22/21 9:02 PM, Maciej =C5=BBenczykowski wrote: > > Why can't we get rid of the special case for 0 and simply make 1024 the > > default value? =20 >=20 > That would work too. Should we drop it then? Easier to bring it back than to change the interpretation later. It doesn't seem to serve any clear purpose right now. (Praveen if you post v4 please take a look at the checkpatch --strict warnings and address the ones which make sense, e.g. drop the brackets around comparisons, those are just noise, basic grasp of C operator precedence can be assumed in readers of kernel code).