Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp544080pxa; Wed, 19 Aug 2020 08:20:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUOP4Yl0OPIsyVWTHTNd9DUssQ7lwjvCq5yADDppKAPXHJ1RW5acL+ritj61mV8GVMrwYK X-Received: by 2002:a17:906:413:: with SMTP id d19mr26914675eja.523.1597850457886; Wed, 19 Aug 2020 08:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597850457; cv=none; d=google.com; s=arc-20160816; b=GmRIiY4Zg3FYoMjYf4r7I84uk91kXwQTryi+3XLc4xSnTn1XMI6R69xA6f06ewJX+A 293e6IQVLBLwXBO75hY8cWgbY01idnlT02VKR/mlk/sYEYHF6DAKSlhscUhDB3+M00/8 wNjRQNEpUdXe6K2w+2inGwuk4kppx1gKaXaqmJWTMbVvZ5cpPcXJMsVtSNCsc2oD4qeF 3pvc+1QdisYXiVihKzPeNMrl96Rgn5P2+DbDb1oCPLujAXzCpH6Ky5xzORz+Lf8aK7wB Nc/CN1bg8pCKVse4nhBW/XkV6PUr9jV4WVNAWDLIQsko5h4wN2tCZ7wiCLgrx5xgCttc FBKQ== 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=SxMh9e6mbIAsZJ0A31frMOmg3gZvSFe2o4lw2DcDccI=; b=SHDAkToIJBrP2d86VIXul2MSz6Eu26dHGV8kheQsARB+vrJIDzTcxDVIW5+bOp0kXB aEEc/SA3FS2PnYfszl5ma05h2L06FtVlgvOzMVnAQQ+UNi9Dk0enAZzn0rORSqpzTCKQ fTb8udF355/dI79D0ccQfVLeBjOFtemt4R7BN0Lqned825YoivZoWFvXeSle6O8BmEX2 5glEu36zgqHdlIAJBxrrr4Aw7fqcjfwuO7H3SxYzHvClqWjjhSmMKspGbfo6PNkFMjAp wxJTXea3t15clhlFhtJnmaOHZd/FL/n7M53fJVpQDwU7X54Qd6l6HvURFYa1/U2guGKd urRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=tjXqKCiW; 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 j1si3749139ejt.542.2020.08.19.08.20.33; Wed, 19 Aug 2020 08:20: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=tjXqKCiW; 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 S1728781AbgHSPS6 (ORCPT + 99 others); Wed, 19 Aug 2020 11:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728751AbgHSPSS (ORCPT ); Wed, 19 Aug 2020 11:18:18 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3534CC061343 for ; Wed, 19 Aug 2020 08:18:18 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id o21so98854wmc.0 for ; Wed, 19 Aug 2020 08:18:18 -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=SxMh9e6mbIAsZJ0A31frMOmg3gZvSFe2o4lw2DcDccI=; b=tjXqKCiWyEz1/E8V0+0SvbrgpGkhEZV+J4WcpM+FKGV2NoIR05VBQtd1AgB1xdvXaN QZHOMP6mpfg0121lwLJ5IGNPqHzD5LYY9cFOkTXRSLm01YQRAJQQOfkkuwhhiGg/b3Va TtX4ko0YbgN92D71/FgkeazzxCSklfKv5dBcTA9Ht5X1V2APTkXDdMo+EZgSySGfgt9X tjJG7dK0lAgV2UM+KxF0+mzftee7kaFYzWzrzeLy17UfYn7eB8XQzZSr+JSFOCajK5mF My7EL6gyX5sBZT258FUk4iH6kZIkR8Vb1TO+y5nYroZwU9xMNnBU6VtAZEwrztj6IbBy Rptw== 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=SxMh9e6mbIAsZJ0A31frMOmg3gZvSFe2o4lw2DcDccI=; b=Paj4DeOTHJJq2TSg3MHfaRXdfg18LniHJ5JLQvd23zBIDAYFHmd20UlRfASZxJ4PeX 6auCDdxBaoj0DCRizViNVYN8KuUi7jn70np01m0TtGycyV6yHmjxrJ5TZ89EQ20+Kmuo LFp1sECTfYxuOEYIqi4O5nLYh9tKcfMH3CRD93IvAJ2JsRlMuXFHtq/odvvb9uqy5JvJ LP2p99FFopC9tMR/sk/UIbKIOGMalYRnZ7zoF8KiVlYmpP41bOPE6qfbZjt8CbfLuoDL jtN8ea6X8q9AMPTIaPjNoS0lOQpx26z2i2BIJNTW1fjJ6qO4ow1xlSl3ZqKPS8C2oIUx VD1A== X-Gm-Message-State: AOAM530jlqZn3u1cUZ+kIFsSYEeTMB3GOczOyXs14CtD/aQeu88vuFAK rgvsCss9caqwycZEmLU60zOT7sAJwsBDI/Bx X-Received: by 2002:a7b:c15a:: with SMTP id z26mr87263wmi.35.1597850296887; Wed, 19 Aug 2020 08:18:16 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id l11sm5674200wme.11.2020.08.19.08.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Aug 2020 08:18:16 -0700 (PDT) Date: Wed, 19 Aug 2020 17:18:15 +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: <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> 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 04:23:25PM CEST, moshe@nvidia.com wrote: > >On 8/19/2020 3:46 PM, Jiri Pirko wrote: >> 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. > > >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... >