Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp98412pxa; Tue, 18 Aug 2020 17:17:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu4zguo/mTEwvIGBy5W3mhjTwgCMeRm0ekMSM8c80EDNVFKsHxoYLfrkfaLzXqLBholCHl X-Received: by 2002:a50:9316:: with SMTP id m22mr22948364eda.178.1597796231350; Tue, 18 Aug 2020 17:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597796231; cv=none; d=google.com; s=arc-20160816; b=wFP5yiwR9ivDHP1nBHb7uoCzOMqqRLOHBkUw1pecLnMeYT3sVmN6JwwpYCGUzVmXiZ gdeWu+ErPFzp3K3YUBmbrICa6ZTIn0d/acvJ8PKkE3l7k3A4TSuTqC+ZzMFV+mvxR0Pp Q480iQjpvGNThPH4KNcF4Vshi4fmETiZ2erMvwDCaIlAu6lQ/T/hTHQdmmxs7o38GyZp 0zllKyJDajKPWd6cXOGMuz6H5neSMJzRUjdeU8zJxHmkL/1RrE8cx8QYDfLxlJO4gONV J6KPsNR0RnfXSLKqRE706ZD2g1BgsPDrhClRzNZNVZGqG/A3lXieYRH4IAiX0jnV4jYF D6zw== 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=o1nBL6aMUBr7JN/nDNJhv9BUCfPvBRUyevF2ne7ZRrc=; b=AJznVXWsacHrPBysEv5Bidpry4H3UO51PVVt1MKK3vZQIEL+Z7q4bhauNbrI4h2CYI 9U9xN37QeaHbGJ7y/bRhEAkyix+dE4SVZlZs8ktf9516khoNR7H6UPiIOhNPTpfZGxq4 7RlBg/Wa2TsLbUoefTw0aa6zlMOROtEkMLVT8efD/EXoeTrOnsxND+KKiBNXeF0zfwkg x6ZfRYXb2q5X4OIzI9RnHX4AYDQ1Z0K1f3JTxavJqhOwhkipFfQWKZpeMTYchR9vvIRY AErRh3kDe0Uge1Dvkc51n0c31FJct3blxcx6wuqG9M63vS9Nr/38Ta6o5cfD3rKzDHXT 3JYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z21pevWH; 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 w21si13766059edi.330.2020.08.18.17.16.45; Tue, 18 Aug 2020 17:17:11 -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=z21pevWH; 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 S1727107AbgHSAKO (ORCPT + 99 others); Tue, 18 Aug 2020 20:10:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:37368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbgHSAKN (ORCPT ); Tue, 18 Aug 2020 20:10:13 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (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 4145F20709; Wed, 19 Aug 2020 00:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597795812; bh=gIc/1QSGdJOTxbuS4FOF8Wzc4rCVAAIAQlMVG6PZujg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=z21pevWHoJnYGD2YnEH6De6N5Uv/egoCH2DrAhTu1D2uVgErjjKoNnAd5cebQtyPo QokRdN7BbXy+KvF/UN9N6cANgMwgsgogpDG4kYAz6B8J6xsHncd2sOrfx0f3CnoQr5 IJdTbDYSXIsTbX9IG3/UebV+K23AzfQu1eiJvzek= Date: Tue, 18 Aug 2020 17:10:10 -0700 From: Jakub Kicinski To: Moshe Shemesh Cc: Jiri Pirko , Moshe Shemesh , "David S. Miller" , Jiri Pirko , , Subject: Re: [PATCH net-next RFC v2 01/13] devlink: Add reload action option to devlink reload command Message-ID: <20200818171010.11e4b615@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <3ed1115e-8b44-b398-55f2-cee94ef426fd@nvidia.com> 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> 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 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? 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.