Received: by 10.213.65.68 with SMTP id h4csp1709532imn; Mon, 19 Mar 2018 11:07:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELurlWKZD2rHnM2lj/oG/6flaLWq2RwFtvq7G3OchwksFdEgqX8TIT85D+v3rXyx7Le7rUQu X-Received: by 2002:a17:902:8349:: with SMTP id z9-v6mr13378617pln.163.1521482823045; Mon, 19 Mar 2018 11:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521482823; cv=none; d=google.com; s=arc-20160816; b=BoQ5F5AD7oj413WgmQ/jWMUj5DjYRfX4VVmElUfgA3MPWt1mBHlAK6J6DPtDg7hFfr bDuZPgiGJXPuf3Jtgczxwn4ybyGVJWSAcawZ7xR+gptxECZsdU1gQQ5BjhnegNO+rCZJ nrcPjNYKr7OGPoc/vWH9PFNWJjqP9rNdQrtj4HaXgEonz3fGdo/dMYCHnmIG7Oud287b ahUiX2gaGRwm6ihcDN5W9Y2XpADAkAY0aZJSxVhCnMINrtmsV7Kg05gdP5d41ON6tyrK UTrLSxOrJcoOfTtgV1reZww/fS9EgBYHqWi3bD+w5Zai0Ug0EIU7N9/aAipPtZobheUh SAQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=BN8QTHUl1hU0IGB9CxUUT7Vsouk7NyFsU2rdOurlUwI=; b=GyncNZIVJYHBViRBPzK8leF9oUwxadmuBZCQ53w6RteIVH+AZvoxkhPlNxAl/i9m9X XZy/N/4N3pBHWmyotu9Qk8F9oejZjQpH2XblyZLpkmXwn33G18Pu7/isnWxSuRyhVDvs 8dCIxYuXd3MXIVYbKJLDy5gdXcFpNVGN5aAVsulTBUXDTMLRpvkkt78UK48Bkn6WR8fU yGTjX6ce3b8o0RQT4hCdEncHzwAdDkhdh3Y5+rgT6G6Ek6D3f7A+9INfr5tkx0TsmFX6 y9cH0CY03nkuozLj1R7Df01XVTstoIWzU902zN0F4Xr40K5g9Qx2043DzitPr6DRD5hC WtUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=D96iINRD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 23si330756pfy.85.2018.03.19.11.06.48; Mon, 19 Mar 2018 11:07:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=D96iINRD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030409AbeCSSFP (ORCPT + 99 others); Mon, 19 Mar 2018 14:05:15 -0400 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62]:24096 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030390AbeCSSEl (ORCPT ); Mon, 19 Mar 2018 14:04:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BN8QTHUl1hU0IGB9CxUUT7Vsouk7NyFsU2rdOurlUwI=; b=D96iINRDUknDOnJSHO+ZE+kUP8PakSh945EwGubHGimXa5jg6qd5hDGq85w4aKpv9n+sqRiNQAhWRCWil8nB7gNlhzkdiSiWYZKocJCToaFqLEVhA+aN5wW91g7D0VCAHoUQO6ivMn+/hKqJkMr3MTGfcn0ylKtEVAmM0s0KxU0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from localhost (193.47.165.251) by VI1PR0501MB2016.eurprd05.prod.outlook.com (2603:10a6:800:36::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Mon, 19 Mar 2018 18:04:38 +0000 Date: Mon, 19 Mar 2018 20:04:34 +0200 From: Ido Schimmel To: Sasha Levin Cc: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "David S . Miller" Subject: Re: [PATCH AUTOSEL for 4.15 058/124] ipv6: Set nexthop flags during route creation Message-ID: <20180319180434.GA13336@splinter> References: <20180319154645.11350-1-alexander.levin@microsoft.com> <20180319154645.11350-58-alexander.levin@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180319154645.11350-58-alexander.levin@microsoft.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1PR0501CA0003.eurprd05.prod.outlook.com (2603:10a6:800:92::13) To VI1PR0501MB2016.eurprd05.prod.outlook.com (2603:10a6:800:36::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 040012a2-cf28-424e-bf9d-08d58dc3e187 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0501MB2016; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0501MB2016;3:oIfdl/MzK8CMxxOm7NWsEAFqm7o9j4y/7QnRXdG9Jt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sSlINnLQtG/LzG95rzFDDBTffKyKPIrv2dw55uCdWsSmRQxOSy/OqRTVsZ+38FAt0nW5mGGJFsJ50miafYwR1smnkdGQUpWpi81lfDvhQjDvibxuUuA5hKtRykOLq9chH89de9Uq4qUjG3VcszGLq0GuXqzu0iqzoxSFDW6Gy/zV7RVck/nNs1X+wzJDy4k16nCTmD9+haeLEQnxLN4dpowJBxd3CEMx78rR/9YuLCh5ubPoaVGG+YfpYN4SBdQz149a6AXfCYtn6EJVmj0uJ8CMkEj5KbizhSfq19;4:rORLaTbFIhUEUbxGx/59Oc4G5XA9xJBhsOcc6B5Cig1CB+joqS9CtixwCObvh+Naeo8EW7AJK4Z6RntTmtdRdi0ZhsnVX8bJg0SG96mF0Duide1LN+20wxSe/0FMbOb/pyV4pNvRr7zCKnUsBuje084rdXzHCsTANUw/cBsiXSNH9U2w8gv10bkYHGLRpGOexJNf0idVBz4ZbIYCbG5uQsENTk2WJQZYPm1TPJrbzwvWjpBZLvPlbdolqNZo4mWqrZELNk1X3bkESjkiDOKaMGWLoGYhRa0LaPgEiuo7qLACNiKycS72UvIUzv1ANHIe/oi78fC4w5oTe82XwGThDnwBbT1g7MkEtsLtHWkXpl8jztJXyQacBe1Ysjs052dg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(28532068793085)(89211679590171)(85827821059158); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231221)(944501244)(52105095)(93006095)(93001095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:VI1PR0501MB2016;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0501MB2016; X-Forefront-PRVS: 06167FAD59 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(39860400002)(39380400002)(396003)(346002)(366004)(376002)(199004)(189003)(68736007)(1511001)(229853002)(6116002)(76176011)(6666003)(23726003)(6246003)(478600001)(3846002)(1076002)(54906003)(2950100002)(86362001)(53936002)(5660300001)(6916009)(47776003)(45080400002)(105586002)(305945005)(33896004)(7736002)(8676002)(81156014)(2906002)(81166006)(76506005)(8936002)(25786009)(16586007)(66066001)(186003)(16526019)(26005)(6486002)(386003)(58126008)(52116002)(9686003)(316002)(50466002)(6496006)(106356001)(33716001)(33656002)(8666007)(97736004)(4326008)(18370500001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0501MB2016;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0501MB2016;23:a/jyIcK2kqM897EDmELFGUHLl7o//iQdDJe8QhW?= =?us-ascii?Q?eVv65Y0zcJpOpAkTQ2UCzSEYmPliq5QwEzLSQqwLjKT6lt/seApPeE8c7fAO?= =?us-ascii?Q?qkxYeDZpgFJJ/l6j9sP+e/M9u+Px6ANecmIF1kyZzIWt5S9gF1jAGJ4HHM+4?= =?us-ascii?Q?Zd3OvyTjBy/h8KCsgvd1MVw6Y+15SrOvYc7FvTI7QzEbrjiGZIREDEdKB0A2?= =?us-ascii?Q?Mrf6Y1LSIkm5+LMsOM8LCD4lKWuK/aXKwd9YOXsvcpoyQtVSl4JXulacn9v/?= =?us-ascii?Q?6JTIlncSRrbb9jDSqT6ECJ+pd+hsxBADaWhOCPVa7SxsturUVmwxlp0l7pw9?= =?us-ascii?Q?HPctFtZaaY2jsh8cd7fBC54pegjtvukbFmdV+V744H1h1NKVTTe3ek8mHJeO?= =?us-ascii?Q?d4742rJhzCNUmWqcR5rt2BdbJ7VisrntoHrAsipstvNK5BjkAZ6ADxJnveZM?= =?us-ascii?Q?FhVDaJU6rriaxiE4IYc3DAPl74vQjTXqONUG7avp1097llDaQM1UNb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tkOJgwAl1latSkZCEdrjg5ll7m/Xo1fqfnajqNcZIrKbXi+YX7Lgg7lPbOG2h70yodmHRkgql5s02bj/lOtOtANPK1E3y2AXhiKCfHVHq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2018 18:04:38.2514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 040012a2-cf28-424e-bf9d-08d58dc3e187 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2016 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 03:48:00PM +0000, Sasha Levin wrote: > From: Ido Schimmel > > [ Upstream commit 5609b80a37f69f796548339e675256188b29c17d ] > > It is valid to install routes with a nexthop device that does not have a > carrier, so we need to make sure they're marked accordingly. > > As explained in the previous patch, host and anycast routes are never > marked with the 'linkdown' flag. > > Note that reject routes are unaffected, as these use the loopback device > which always has a carrier. > > Signed-off-by: Ido Schimmel > Acked-by: David Ahern > Signed-off-by: David S. Miller > Signed-off-by: Sasha Levin Hi Sasha, It doesn't really make sense to take this patch to 4.15 (and 4.14 from your other mail). The flag is never used there. In these kernels the flag is dumped to user space based on a carrier check. See commit 44c9f2f206f8 ("ipv6: Check nexthop flags in route dump instead of carrier"). Similarly, during route lookup the carrier is checked and not the flag. See commit 14c5206c2d02 ("ipv6: Check nexthop flags during route lookup instead of carrier"). Thanks