Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp131599ybg; Mon, 27 Jul 2020 18:00:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgSkNf1cZLv32K2DdYa0hwQE4yY6el2oowRJqXW90FnttnoK83PBxs6GpcPfkgl5zWEE/6 X-Received: by 2002:a17:906:aad2:: with SMTP id kt18mr5425192ejb.537.1595898006297; Mon, 27 Jul 2020 18:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595898006; cv=none; d=google.com; s=arc-20160816; b=a5JZip/66jxF/3LBbj7oJs0rU9mv8s11TeHB8Ktm/G4j7WmM9P+52j7acGJRC1k1QC Ni/PYV0tmPllKaJFbOlwN1y/l6yhTzchi/ZeYZqS2RK6UkaV6gTN0nHszSRfeA0XHTc+ l81cMyey09GDyEbLP+uY/CM4K7Dqyhht69F9lVipDbZZbhvpAq0GTdC9YWVzc5qswBK0 HU6rBbkQitsPC3smbLxUmGsDm1arzfALRsIYtOs1epIv/FiTrC55f84Ia6qIAwy6lOUY OsVRNB6oGE7ReKDiJ+gHl3hAx72uNd6Tx5+78IeVn7D/A2X4PLEnzasXyR1RENAM1wLw 1/zg== 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=/v2pEypHMyasVyotFKd7WFpokNzc9FvT7QUv5Xpyr9I=; b=1ASshd6+bK6Fj6qDVMBXZZkwmS7AE8iJtMHqDEQ5rbviSHhZ236Okthpb3DZSh6ABT H5n1HqDvqTDGuVy0cPSSzqLPSw/L11fbMxwuXDd4hDWEItRdHjlNEbT48eYw4MewvB3g o1MHA/1MsnQSRpiAqB84Cat9jRgXg7fS7nyCz64R42dPRTq0Ci5ISoQFEhZcYj4Dbpkh OQ1Yrc07cdQMHgZ1aYUEpMOMSTOd1vXE8l+ORrhRdXQcNobEFBe0oT/bfjVKmq6hx+x8 9SuBpcZEygRlxk0OqHdywWPVhfVIx/ppE8ZOj7XfSV4+2gUGq+++5qYt9h6q8wf5rns/ EejQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XEaX6DK+; 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 d11si5180494edr.595.2020.07.27.17.59.42; Mon, 27 Jul 2020 18:00:06 -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=XEaX6DK+; 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 S1726841AbgG1A6o (ORCPT + 99 others); Mon, 27 Jul 2020 20:58:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:56338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgG1A6o (ORCPT ); Mon, 27 Jul 2020 20:58:44 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (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 F156820809; Tue, 28 Jul 2020 00:58:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595897924; bh=3yAu5O3paSd/QeeodRmlsjC6aicSe9poTbKk3ohlPLw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XEaX6DK+yDFqqA4Gc97FtWLhCpZKoubmE0xncy0IrwFQFpg3q68xbPV70GF5KKRbL m/8nwJ3GQV1EKmFgFrvQqhST7kVO3IMzEcYo/PRuHHaYkggn3AVnFzIc1nEDaui/cd LtXQHeQz9VMAL4yt3KOwqrXliAebzleycNddSX0M= Date: Mon, 27 Jul 2020 17:58:42 -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: <20200727175842.42d35ee3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1595847753-2234-3-git-send-email-moshe@mellanox.com> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> <1595847753-2234-3-git-send-email-moshe@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 Mon, 27 Jul 2020 14:02:22 +0300 Moshe Shemesh wrote: > Expose devlink reload supported levels and driver's default level to the > user through devlink dev get command. > > Examples: > $ devlink dev show > pci/0000:82:00.0: > reload_levels_info: > default_level driver > supported_levels: > driver fw_reset fw_live_patch > pci/0000:82:00.1: > reload_levels_info: > default_level driver > supported_levels: > driver fw_reset fw_live_patch > > $ devlink dev show -jp > { > "dev": { > "pci/0000:82:00.0": { > "reload_levels_info": { > "default_level": "driver", > "supported_levels": [ "driver","fw_reset","fw_live_patch" ] > } > }, > "pci/0000:82:00.1": { > "reload_levels_info": { > "default_level": "driver", > "supported_levels": [ "driver","fw_reset","fw_live_patch" ] > } > } > } > } > > Signed-off-by: Moshe Shemesh 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? 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.