Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp683944pxa; Wed, 19 Aug 2020 11:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3tDyF7Uk+CfIgeH6BVQAa0PHU4Ecc4KxU6RPezYmqmV0cAf3qNOcV+hdYbY8eadg4l1X/ X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr26382700eds.229.1597863477481; Wed, 19 Aug 2020 11:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597863477; cv=none; d=google.com; s=arc-20160816; b=hPMrElwGhdtkdFA+cGHCs640wqyRY1l9jRM9qRdbBUw6cpd4xkHRCptLO3B1w+VJbX caUaDxJskq2n3OF2NAO5e8oCzpTA05uquO5seVwfYjfNM5g4iRShMsLAybHJAHIBlQ3Y mVK8YvMRuL7Cr7bPb8UYsNq9jfF8oNoR7z87r4Fwb7ImeRYiublLr+slw40FEgf3fBzq yzL+fetqLuYPlpbwlAPMRjZCWDHNJfV4+Pm0S5ZIOh6pSO/7g23XFsc5F/FoO1kYDawZ /+wwVgNRXMAHiq2lbilS7p9Rh8u/ZHgwT4jmezhKYag7i5nH99LVM7LYY4lV2cbgMXLG OYJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ooMhFUs9RFhswhrwBkRtQX2o8ZbiuA0ZfSr1gShQi2Q=; b=fhUveByo39vs6uZoIPK6kGrNZ5Kvx4Ct1F4Gkl925hGKAWF0XmzbuY0lz9oXiTdGW4 M3buZmeP7gi7CVt1pl0HtxS/Ro07gid9jKuKCFt0I13XnDfsMcI/vFUgo9DcwGjcMHIl 2ctkixf7/TmOvARvJKYdCnlnDvozxUF7stYag9f6Tj312kEhfJh+AGGtdbtGm3ONV7Md GG+poPYZLiNUC2Vc0+qgOse6AkrWaezXM/+9RktCBH3kcj4aJVbfUpvjzvd2/5qYC1rb 1SjpfA59eXdm8a7nOGDEvp0wAwCC7eNvfzKB3WZSmmgBr8+yqqpo5HnIPPw52V0aNzkr CZtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=TX+hzzw7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si15428216ejb.224.2020.08.19.11.57.33; Wed, 19 Aug 2020 11:57:57 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=TX+hzzw7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726646AbgHSSzJ (ORCPT + 99 others); Wed, 19 Aug 2020 14:55:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbgHSSzH (ORCPT ); Wed, 19 Aug 2020 14:55:07 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C8F4C061757 for ; Wed, 19 Aug 2020 11:55:07 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z18so22514785wrm.12 for ; Wed, 19 Aug 2020 11:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ooMhFUs9RFhswhrwBkRtQX2o8ZbiuA0ZfSr1gShQi2Q=; b=TX+hzzw73D70v1zibyNZazPeJ9ek6hmB8R8NSrhcQoCsyGihMKlNkLYi/p8HHcsP5c mVo5+ZJbc1ovI8/cPwyp4Vjz4CxsW+oX1zTf8QchcKsNAOwL+sEx5yQWbBLeghwfJCle Wkg5vrD01Xy4SIl6gHkVt0z1pNAkZHY77Yn5k8QbW7C69vlHls42Dy6sPTBQlO4lQQ0e rSPhxlyNAL/9D7eqbaGX+k4H+U2CViB77Cj6WyI4Ev1S9cGBGCXkKimNslmC5K6P/env XlOMu4LXPpqLzipkAo66pFGSL87UxW1Kbprjz0XZGXFkD5k7+pOFxEluJF/wnTToyp7d VWzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ooMhFUs9RFhswhrwBkRtQX2o8ZbiuA0ZfSr1gShQi2Q=; b=XYG257ZVxCflYMLK4HFxfDchweNFODKIYKJM6xZSiH9ArGSh6szcnr8TwYRJdbSARc h2mgo3IWvyrmxKHQdyEujWIssOcYyGQTqAp4Jj0shaMKAVOEHimQq1PEmGeSrYJf6jzK su7/ydHiu8NXm3DSQKQGMLgzRcz/V/B8cib32xEyrPvu82KiZdNmY0G8iKU7Q2MJzJFa FplGx2tCfyZbbotwxhPrx6ZsVHD3FECjtTJfuc3ukKt/xNWvQyGU80Bh2hY1N/BCGtvI /hQJanl0hu0JHC7WJO5Au7lcZxURDu4AsC1ayCa89eHASjUWUaOSCEJPZd7H7PPEMKmN NWtg== X-Gm-Message-State: AOAM530Sm6LKYtfeGENkl/EmFDg1J9gZ9p3f7K7y9V5rjnDnp1UnNpRP WbUEfPMEziAobL5JE/bvNEvPzw== X-Received: by 2002:adf:a4d7:: with SMTP id h23mr5851348wrb.276.1597863305805; Wed, 19 Aug 2020 11:55:05 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id w10sm7599043wmk.0.2020.08.19.11.55.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 11:55:05 -0700 (PDT) Date: Wed, 19 Aug 2020 20:55:04 +0200 From: Jiri Pirko To: Jakub Kicinski 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: <20200819185504.GB2575@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> <20200819092551.6d94de03@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200819092551.6d94de03@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Aug 19, 2020 at 06:25:51PM CEST, kuba@kernel.org wrote: >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. Okay, fair enough. Yet, I think that the info in the reply as I suggested would be also nice to have, while we are at it.