Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp435765pxa; Wed, 19 Aug 2020 05:47:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxk5C44BSCvdf7/1vFFaFi5Mkj0mNqAa2JhgvZQJf+nTd6DpyPf8THUDUdTg/NzCFyRRHYp X-Received: by 2002:a17:906:e0ce:: with SMTP id gl14mr26337580ejb.393.1597841279581; Wed, 19 Aug 2020 05:47:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597841279; cv=none; d=google.com; s=arc-20160816; b=CK3yzYCA7Hc4zXB/fVPjnZzyHY4GOJFQt+uWbMeV/MJAEC6WRP3MdIqkiU2rt04UyN obRsUrJlyWXuLcZlEAgS6i9Jy3m1LGM6gVUl+ujecDbnXdmiHuyxOobz+8KaYpKjuWTi mMYrL30SoC11zaqF3VD0tXjPwXU22mIZBKL+mPT5KZ1w72AHEqk9G/le3xg8/m/wLpne PJuZOHYEb58zWUpwDDSz54N2kIj6yqqeFACEHEIzy0CMga0A4jKiJuAgJgAlp1hzbtEY s07j8Jbv5kwFWpknex1O80q7E+eFdJHVwm+BGA3tYWpqNa0MQZb4ekoJm6qwzEGlRaeg Yh7w== 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=2BzCE5QyyYKQU931AlGPMu5HZVvIvHxha+lrY7tCRes=; b=XDI3iHr2Mwym3LXQjGSQWGpZKJYizS2bZKO2LCSFYC4Xm8E9KiOU8NNN31WR89T904 3VAuIl6zY2ahVtaWsCldBDUJHbSEcQxkTmWZQz3by+G1q8hjhtdxEyW70BelT/HJvZOc DI9VMK8MuAeAK8z0gzLcCVD+dR3GBaqdT7v4uE1jWwPkcloNI0ODe0qgk4N3m1JWwaAE QgLhy5ik8e7fRdFhjrRKYKqRpp20E/klgMRfiR+1GOJpugl5PuUr306FlvLn2a93QmSs XXgAGNGrJmlBXdYg4RbpqPBosQf/4HsZWvpoaDOFQWXLeiIP977BV2BN+2fUdv6AIHOt ImNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=MWp6hmrR; 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 dm21si15443659edb.602.2020.08.19.05.47.35; Wed, 19 Aug 2020 05:47:59 -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=MWp6hmrR; 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 S1728305AbgHSMq4 (ORCPT + 99 others); Wed, 19 Aug 2020 08:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728152AbgHSMqW (ORCPT ); Wed, 19 Aug 2020 08:46:22 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E67F3C061757 for ; Wed, 19 Aug 2020 05:46:21 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id y3so21420232wrl.4 for ; Wed, 19 Aug 2020 05:46:21 -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=2BzCE5QyyYKQU931AlGPMu5HZVvIvHxha+lrY7tCRes=; b=MWp6hmrRJhUbzUdF0FdnrfONYMpFUd7Iyj63uekk/ZvngRnKZkjWtl//71SJLcWmdu XFUVVPM5DhNUB+kFlpvn2H79VSVE/mu0dkJlU/2cRRbMEbOuTZl+G2ySd2dDqSD8Jl0C 7KB6HizxZ4KpnotaU49Km7jTyTF7+JT+9KOjGe5xT9SRDe7B7vVArfjeybaJ2Qhlvv4E vL24tKCcoRsntKQRVwuTg/OilunaMOvnibVxD81nI8FmZmccTaqxCtUH9A3dwDVLs5oR sn9ycaDgMUjsxb7S260D69JFYBS2CDc7wQnKQLs3IfqyVfDDoqGPpd2KA2O13byN4smx RwrQ== 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=2BzCE5QyyYKQU931AlGPMu5HZVvIvHxha+lrY7tCRes=; b=VBlqOAdtsRC71niMpHPhRq8WL4O/mzSKXw9DmpVb3+M+0pIT/syybCSTr/rzYJj5CC ILEwxGaeCdcCcQPohcjvIzoBSKiUK8FqQkoiNhqDm09gM7kSiYEQ9YllpZXUfP+tp886 ttEsSeZUvSgjfAZGzffIvoa1cOw0Z+ltqx2hgzHUeGdZmA9AVseKCspfW6YyCs9vl5lq 1y0ZifzZ08w5MWxIUeXuBh3eKbFG6+8/0z1/hYPAooAeWlq1g62fqHVd2UNEqdy14Dx0 6gV0k1giRuiJkswbbM9uAeO+1htWnlFKHEv6TLSP8OLTiZJ3kHBn6+EKMcaSdnveslEq l8Rg== X-Gm-Message-State: AOAM533HXOI4GpIETNtN8tBpliGuVfelRL263oEWIVdOT0j48iRp+cc8 eBZ/N+oDvnC0VQLl9a8HniYeOA== X-Received: by 2002:adf:e550:: with SMTP id z16mr24865865wrm.329.1597841180601; Wed, 19 Aug 2020 05:46:20 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id j24sm44099589wrb.49.2020.08.19.05.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 05:46:19 -0700 (PDT) Date: Wed, 19 Aug 2020 14:46:16 +0200 From: Jiri Pirko To: Moshe Shemesh Cc: Jakub Kicinski , 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: <20200819124616.GA2314@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wed, Aug 19, 2020 at 02:18:22PM CEST, moshe@nvidia.com wrote: > >On 8/19/2020 3:10 AM, Jakub Kicinski wrote: >> >> On Tue, 18 Aug 2020 12:10:36 +0300 Moshe Shemesh wrote: >> > On 8/17/2020 7:36 PM, Jiri Pirko wrote: >> > > Mon, Aug 17, 2020 at 11:37:40AM CEST, moshe@mellanox.com wrote: >> > > > Add devlink reload action to allow the user to request a specific reload >> > > > action. The action parameter is optional, if not specified then devlink >> > > > driver re-init action is used (backward compatible). >> > > > Note that when required to do firmware activation some drivers may need >> > > > to reload the driver. On the other hand some drivers may need to reset >> > > Sounds reasonable. I think it would be good to indicate that though. Not >> > > sure how... >> > Maybe counters on the actions done ? Actually such counters can be >> > useful on debug, knowing what reloads we had since driver was up. >> Wouldn't we need to know all types of reset of drivers may do? > > >Right, we can't tell all reset types driver may have, but we can tell which >reload actions were done. > >> I think documenting this clearly should be sufficient. >> >> A reset counter for the _requested_ reset type (fully maintained by >> core), however - that may be useful. The question "why did this NIC >> reset itself / why did the link just flap" comes up repeatedly. > > >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. >