Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1434229ybg; Wed, 29 Jul 2020 14:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7CO4i5DlyZaYOhU+6aNrOFX5iuJVkyVnZ3MgM9yYI7Q9Iza9mOK2kPxfvxkLhGWkBMWxA X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr166452eds.229.1596057261287; Wed, 29 Jul 2020 14:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596057261; cv=none; d=google.com; s=arc-20160816; b=YBaKAxBnV28s6wWlEnvqg5z1W0cQNswV8FJcoyhyyg4hvD/QAwzN1bE3XNSPfW5kk0 P4JJNQ4YCxe02uMYCPTFv6OQNmwgEluYP8x35QPDH/7u46WI7tgvQ0PyxzZdIfYQEGjW Tsb6qeWOsnaMuvdBDybVHkOAIzHZcxLybQQuFghmolAUB9uQ17f9lLaKhAK/cQrZELWO 0aFMsfPPKqQ1/b10ZMad6b3eqNJRu34jSSTUhYhA3haagePewcCrDLcgrKtbpMCKCYHW 2N9LE6K/YJ33hnOSN9yGoz3WAJ49358CpWqNDQ2x9SfpDhTMEOGmeBW0w0C0G9hnH+9Y 9dXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=koKmKjy6rViJEJyXtMWKAGJk7+bP5Nujy7MfIjJbR4Q=; b=fkn1PbYVhaf0YgtxWtecGjYqs7/5Zuk8cxMdWfYe+dgaJT4eYdbXBHsFl2lhVTvyMN l8ToriVV/gxovDnhyf0B9hvDV/P/VXupFRWBYfD5u8LegOrVx+oEF4pOIMQHMsYdC6qe jC9/1uXFmkrUEFgp+z5yj94IcG5yjeByXYGHDrx2puri88AdNnp0uyC5sednmb3t081/ eaK/70Tqo/d4q0N/xxl8kUg1ZCDObt/VUbRbNrjVnwBRKdN99VwTpOeFWHj3VwUlzu5l o53w93/qqcP2didaxmELftZokUHCBZO7cHWwUuW1Kp+q3XPqpFlky5s1JQwlVdz/ach7 Lhcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IxVF08G0; 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 a24si1745130ejs.633.2020.07.29.14.13.58; Wed, 29 Jul 2020 14:14:21 -0700 (PDT) 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=default header.b=IxVF08G0; 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 S1726947AbgG2VLV (ORCPT + 99 others); Wed, 29 Jul 2020 17:11:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:37712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgG2VLU (ORCPT ); Wed, 29 Jul 2020 17:11:20 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D029206D4; Wed, 29 Jul 2020 21:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596057080; bh=wtkGbGxbhVZMyldtal6tTzTwU0JwVbA3bYw42/D3B8I=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IxVF08G0I8v/o0Qu3gUdv6gJSfvIvBLA3zqx8cMQucC6nnMhAgqv8IFFjeGeJgq4y R3vZ/DLYdqK31OoAunLXz75rJ7psxqvFeuV/0EdbEZADWZRGpPHeqUUsIZPyepbdpC Rvo/wAzq2GBCsVn05D94K9gnFUSwbJ0F56uaqSc0= Date: Wed, 29 Jul 2020 14:11:17 -0700 From: Jakub Kicinski To: Moshe Shemesh Cc: "David S. Miller" , Jiri Pirko , Vasundhara Volam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next RFC 02/13] devlink: Add reload levels data to dev get Message-ID: <20200729141117.0425ad12@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <448bab04-80d7-b3b1-5619-1b93ad7517d8@mellanox.com> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> <1595847753-2234-3-git-send-email-moshe@mellanox.com> <20200727175842.42d35ee3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <448bab04-80d7-b3b1-5619-1b93ad7517d8@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Jul 2020 17:37:41 +0300 Moshe Shemesh wrote: > > The fact that the driver supports fw_live_patch, does not necessarily > > mean that the currently running FW can be live upgraded to the > > currently flashed one, right? > > That's correct, though the feature is supported, the firmware gap may > not be suitable for live_patch. > > The user will be noted accordingly by extack message. That's kinda late, because use may have paid the cost of migrating the workload or otherwise taking precautions - and if live reset fails all this work is wasted. While the device most likely knows upfront whether it can be live reset or not, otherwise I don't see how it could reject the reset reliably. > > This interface does not appear to be optimal for the purpose. > > > > Again, documentation of what can be lost (in terms of configuration and > > features) upon upgrade is missing. > > I will clarify in documentation. On live_patch nothing should be lost or > re-initialized, that's the "live" thing. Okay, so FW upgrade cannot be allowed when it'd mean the device gets de-featured? Also no link loss, correct? What's the expected length of traffic interruption (order of magnitude)?