Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp588922pxa; Wed, 19 Aug 2020 09:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQx+BzJuC0zpaxSGlSewtKgGTblRZRFgWP08J8x1tB9++AC+B74Yw0Q+B/3iSqAaD9NjIq X-Received: by 2002:aa7:db0f:: with SMTP id t15mr26034511eds.359.1597854422478; Wed, 19 Aug 2020 09:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597854422; cv=none; d=google.com; s=arc-20160816; b=lc73b2Qf/+rdxISQbtM+kZna8OMDYCpwm0vSPz+3ECnerwXIGy+s3Ry0Ihjp7qiQjJ H1AXFt1XIn5iDsdNFm+AhdbSatxq+d6Qih6vXM+CRCv8ttag/950O93k43tnYlmmtoA/ TUIaFfGicmHI16cOPUpPWLzWXz/vLB/y7YNCyJpcKhSFZ0S6ImxE+vIHJsydtA7tjA3a N2IDWa2sWLMzU15/6kKI073VwOxwl4p2SJ8wcPZHx0iDN5VtyTVzL0g9HZunoNTIuh1/ 4gX3Hn7Wdwf4OqZ76F2itpurTMrmR/THgNeig7t1GeWVj2Sinfle7MP4nlzFFvBp2BvB Q6ww== 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=wK0Tqo5hBd6w8D3PikwKCjedodRML8lwgLTYYiJGxFM=; b=LgywiOnk3cq6ZD6oGNxVOcUBaGVoa54V8wRrAOQ8seXpxsfkkTGyQj/FG1stwRflh9 FsB9wb291ptn3FEPBVRSNMK9Hr6X9AekE5w+zCbfG/rdgSiIBNfy+qqLb6pRW4FuXQyW z0C4YqH4bGREfTkWwyH26ifyTDGnQIjCQgPXCVx48qFkzrJkoAAQHZof+8uCThw6Klut dpheKr5FUTl6hYXmwEwCeTFAs7zOEUtZ+DroJAlgzmPu8BOFp/LDbPuKw7Ge+UKa37bM NaTDFvGMppCqM1MNCjW+G7JEDsjgZLxErOIt+JuWyKf4G+By2KxpaTkEzvX+JXp+Yldg wrQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SxfRbhaD; 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 j20si15540698edr.321.2020.08.19.09.26.39; Wed, 19 Aug 2020 09:27:02 -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=SxfRbhaD; 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 S1727112AbgHSQZ4 (ORCPT + 99 others); Wed, 19 Aug 2020 12:25:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:48898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726899AbgHSQZx (ORCPT ); Wed, 19 Aug 2020 12:25:53 -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 D100E2067C; Wed, 19 Aug 2020 16:25:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597854353; bh=1GN23RM47/uiFPYCDNfEw1ChgK+WbXJt6mi9J1+KPZM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SxfRbhaD6loD67guEjRdG/gEbK5t1IYqiheAx7Qiei6ixQTBNhlqM3EhHADw91Dqf pRhjWVgYopv3svG6+Cu1s2EDZ8sQjcPnYxnQQtIPaGdN2secPCEcV74u0Q+UXBFew2 NFB7WRaVPUh4P6iCqrGPrJ9ikZD+IcQFaSaYm4Yw= Date: Wed, 19 Aug 2020 09:25:51 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Moshe Shemesh , Moshe Shemesh , "David S. Miller" , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next RFC v2 01/13] devlink: Add reload action option to devlink reload command Message-ID: <20200819092551.6d94de03@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200819151815.GA2575@nanopsycho.orion> References: <1597657072-3130-1-git-send-email-moshe@mellanox.com> <1597657072-3130-2-git-send-email-moshe@mellanox.com> <20200817163612.GA2627@nanopsycho> <3ed1115e-8b44-b398-55f2-cee94ef426fd@nvidia.com> <20200818171010.11e4b615@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200819124616.GA2314@nanopsycho.orion> <20200819151815.GA2575@nanopsycho.orion> 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, 19 Aug 2020 17:18:15 +0200 Jiri Pirko wrote: >>>> I will add counters on which reload were done. reload_down()/up() can return >>>> which actions were actually done and devlink will show counters. >>> Why a counter? Just return what was done over netlink reply. >> >> Such counters can be useful for debugging, telling which reload actions were >> done on this dev from the point it was up. > > Not sure why this is any different from other commands... Good question, perhaps because reset is more "dangerous"? The question of "what reset this NIC" does come up in practice. With live activation in the mix, knowing if the NIC FW was live activated will be very useful for dissecting failures, I'd imagine.