Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp640423pxb; Thu, 5 Nov 2020 09:09:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy0uS0VW2FOqblbnHbGYO+Yc7t8hJkimXOKxdMWQdCBp/hZmvai1qsO91gM3Y4MzXgqef0v X-Received: by 2002:a50:e61a:: with SMTP id y26mr3682549edm.71.1604596164595; Thu, 05 Nov 2020 09:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604596164; cv=none; d=google.com; s=arc-20160816; b=SzwhHNzYiiQz/gjFNlCqS/s9hZnhdDeGKv5hhH2khzRJLliHeaRZP67xuXU7MAF3m9 qCAnykZM+fD9sqz9dUKNLszcA8mUV6T91DgLHb/AROnLDh3+HhlTAkUrUeLOnqg1JGnT Sb8hWm1A0mGOsCQLKuTGoWllTGng3nfZGMXZeqhDSOBtvpmibrwHwvjtT5nig2t8CGAR T8X2V2C33H4rnjXgDLBxrjawVfmdiX7Y3gIZFij3gAeRR6KdFcZSmHsqRiKMHkKlX9ur qeU1GFdgCrXQ/mcBoH1oXmIuN/v2POdkydub67ZVGJxXVdMn1Kzyj1n4EECb+yIR/odm EAzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Yb5IaaqVCyimTjzznwBpLtP/d4rWLNz8GEsYi5CuPGc=; b=gfEZFt2SVsz6yGf5tt/LSQmLWWmaHiCBgpLZS5U8sfJtChV8T6/xDMAdyLV9pMKij9 UkDY9WSrExwMVkTsHc76Jjkdtx3PJLqXFfbLnx8YYEZ01/OVAWeDCf66FrVwbYWXlMhI n3gX9dWJwFmmAtul1QferoowqWd73GBU58f/ua/YLUFAOxCNhcZcTRZZDiz84AKU5Hue fuNlT3P4b/jn+CW/SoeEmmBJsxrMGExk3YsNFFu3LTDMcXEZLEJeimcyXJ0Cs05Vv8XX BvWPVb88E+FIKP8i+YAqcLf51rxcnbXvTR8emk97838OEoAGaEdMF0j/7ep56XZtPVPL SUnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="V4iRWI/u"; 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 p18si1636830eds.125.2020.11.05.09.08.59; Thu, 05 Nov 2020 09:09:24 -0800 (PST) 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="V4iRWI/u"; 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 S1731535AbgKERH0 (ORCPT + 99 others); Thu, 5 Nov 2020 12:07:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:55826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730447AbgKERH0 (ORCPT ); Thu, 5 Nov 2020 12:07:26 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (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 2526B206F9; Thu, 5 Nov 2020 17:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604596045; bh=92lLMj3nZ+N80CAl49XYHHRZncQilSNLr8At/FZYmG0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V4iRWI/uRwYIlE3yQWmTv24k93/ER7T3e9KMcwtpupCCewDT4RnmAaE9klQKguN5A Vfzddx8q4BkW82YTQ0jiuIk+AS/e6KKho1TFo9x5v2JQIItUIYvDOcVnPNVNTSvDR9 BVT8uIBVTdeIUZM6rYBn7+A1eYMwtqK1L1sqGTv0= Date: Thu, 5 Nov 2020 09:07:24 -0800 From: Jakub Kicinski To: George Cherian Cc: Saeed Mahameed , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jiri Pirko , "davem@davemloft.net" , Sunil Kovvuri Goutham , "Linu Cherian" , Geethasowjanya Akula , "masahiroy@kernel.org" , "willemdebruijn.kernel@gmail.com" Subject: Re: [PATCH v2 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX Message-ID: <20201105090724.761a033d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 13:36:56 +0000 George Cherian wrote: > > Now i am a little bit skeptic here, devlink health reporter infrastructure was > > never meant to deal with dump op only, the main purpose is to > > diagnose/dump and recover. > > > > especially in your use case where you only report counters, i don't believe > > devlink health dump is a proper interface for this. > These are not counters. These are error interrupts raised by HW blocks. > The count is provided to understand on how frequently the errors are seen. > Error recovery for some of the blocks happen internally. That is the reason, > Currently only dump op is added. The previous incarnation was printing messages to logs, so I assume these errors are expected to be relatively low rate. The point of using devlink health was that you can generate a netlink notification when the error happens. IOW you need some calls to devlink_health_report() or such. At least that's my thinking, others may disagree.