Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1764993ybl; Fri, 13 Dec 2019 23:20:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwYh4I4AZxwrTaSRJQSREfjrCYqcAWbQJDk6Z99x5an4MsSvtFEyy0UyG3bDgpXM5CSMDvU X-Received: by 2002:a05:6830:1582:: with SMTP id i2mr19932388otr.50.1576308015576; Fri, 13 Dec 2019 23:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576308015; cv=none; d=google.com; s=arc-20160816; b=k7cxpOgJFUqR0CSeZYtu9/uT9LF+/F/DJdhQ2G8JeSPArI6/9BEthrI2Ln/Xd7KL2h 49u9bttcALkvHZSJT6giDc5XbcpcI+lWax7wizyNCLFhmfmHyLVNGCQWj9bcWUV0V2wI KjvWiyFAK5JKC2Nn0mYDdb50pa5kUKBCXRHRSL9yloHplOIjl2ez+E+oyETOZrWxDqzf k+h5Bm/MtaK85m3vMwAxTygV3lsWnyJgCfpnLTP9iQOtmmivhB79YIwXBtZ9NfBm22X8 8gjEkAkDZeyb0UBVHlimbtQ1TfWTEt950TpuHf5D5p12QJql4x9jRVYyMIBIfOoUpXou JWOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7LG9kLh7HfgLyfKqGHwjkUt19aUC7GG8R/ws/HBI7Wg=; b=DsJJm7ECZud5nuTwQ1xVk2K7LHvk5MfhcIVtNuC46wgqnU0LKvQPduCXnLRgCW+YHe 4PZCupP6yalhkb2WE06cj6PdWP2S6Q3eKvAY5qb53FPLekUlNxogUyWZlVtfZjuNo3t1 gMJ3PLphgFqGmLMFu3S9uAXRh7wDhY9XKZT5ymGfccPz2aBW9UeoO9rWVwM4G6YA9DH+ WhztBqS3XqI3KwFCT6s8dcjpquxQCOZmBuFgPcWqNiNEpgk8rr6Mcr/pf2dIEX3agezk 8d6snvjh90BoX8Ubd6RLA/6kbaV5YltD2THSrmh68BbyKTeQWTPrHHlgvBVFDNdmeG+y Lrdg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h22si6584396otn.279.2019.12.13.23.20.02; Fri, 13 Dec 2019 23:20:15 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725933AbfLNHTX (ORCPT + 99 others); Sat, 14 Dec 2019 02:19:23 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:29478 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725372AbfLNHTW (ORCPT ); Sat, 14 Dec 2019 02:19:22 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id xBE7J7f9002928; Sat, 14 Dec 2019 08:19:07 +0100 Date: Sat, 14 Dec 2019 08:19:07 +0100 From: Willy Tarreau To: Jakub Kicinski Cc: Russell King , "David S. Miller" , Antoine Tenart , Andrew Lunn , Thomas Bogendoerfer , maxime.chevallier@bootlin.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: marvell: mvpp2: phylink requires the link interrupt Message-ID: <20191214071907.GA2925@1wt.eu> References: <20191213163403.2a054262@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191213163403.2a054262@cakuba.netronome.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 13, 2019 at 04:34:03PM -0800, Jakub Kicinski wrote: > On Tue, 10 Dec 2019 22:33:05 +0000, Russell King wrote: > > phylink requires the MAC to report when its link status changes when > > operating in inband modes. Failure to report link status changes > > means that phylink has no idea when the link events happen, which > > results in either the network interface's carrier remaining up or > > remaining permanently down. > > > > For example, with a fiber module, if the interface is brought up and > > link is initially established, taking the link down at the far end > > will cut the optical power. The SFP module's LOS asserts, we > > deactivate the link, and the network interface reports no carrier. > > > > When the far end is brought back up, the SFP module's LOS deasserts, > > but the MAC may be slower to establish link. If this happens (which > > in my tests is a certainty) then phylink never hears that the MAC > > has established link with the far end, and the network interface is > > stuck reporting no carrier. This means the interface is > > non-functional. > > > > Avoiding the link interrupt when we have phylink is basically not > > an option, so remove the !port->phylink from the test. > > > > Tested-by: Sven Auhagen > > Tested-by: Antoine Tenart > > Signed-off-by: Russell King > > Fixes: 4bb043262878 ("net: mvpp2: phylink support") ? > > Seems like you maybe didn't want this backported to stable hence > no fixes tag? > > Please advise :) Speaking for myself, I'd very much like to get it into stable in order to avoid having to keep this local patch on top of latest stable! Willy