Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp326732rdb; Thu, 25 Jan 2024 17:28:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+lnOgp5p/NWq22EbX0ep7Nm6VTSdWlzJ8ctX6wWnoAB/cEL+NYmGOJwIcaLK+FcHBN7Mj X-Received: by 2002:a17:90b:4a09:b0:290:6b66:620b with SMTP id kk9-20020a17090b4a0900b002906b66620bmr385772pjb.12.1706232501555; Thu, 25 Jan 2024 17:28:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706232501; cv=pass; d=google.com; s=arc-20160816; b=nTIwmMINewqbbzyGEEvqNwjmTnHOIFGgB0p9I++2XjtOOo5kQE9PrqpSK6a4UH3hTD OIHcyHRpjTvFMWhT2s0gKLXZ6wwjp6r2X5oiVL+Ose80aKQdr+TKS4seH7x/4WjpkMkn tGZNUIjW0MCoC2KAkdakfsvRUd95RZ4wzbNwo5sGGMEh8ex4QLTqeBrahMOCvmd2lcOH DBqI6bTFItGuSt0lEkR8h/aopRfdwbHyorlFcOktTiT7tgkQwcf3plUolyo9Dk8jD91e C4AAUb0fRVUZ60cT3Op5pEyNpbd/PU1Cd2BOJe2ZpMoua0Wxpv+zUydXqAgcuDOSCxzt kQNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=NBNpD3rGyBkqDjsaOQ3yolAyeITQR9INcVJ7DsTqWEc=; fh=tejCXwj6VOLK/pP00sMZ2qp9+7rhEzA/hK/BYYFtQFU=; b=ZGL/Y/XGF0yi2s2zqt0vRGJDHyPFbMEYEw2osYKsfClKPyGsYI3PbDh2kU660/bljY 8iNZEZ1jAKh67dalKXyqnyNhfNvz4yF7Rk3kNcODn2Cz6BS5/wvB9JrjvQTwRMcSHC6/ lIKZkukEyuphSNocansRF0KZTlApNK8TOWjInRuCeE+29VcEABI5alFs3QixkM5S6i5e qSpcIcRtymRfbsiLT5hJ0zIXDXZCOxkn5TT9bIaLzDMllTJI1DtPpKCtzn+wz5vQ8xWV yHKNqEBjizzrNCGYolQjtxQQEnSxjgMSBDrQ1smALLQpy5GxrtN4xyovQl5LQjd+zD1g fWTw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=axsI+Ry9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u14-20020a170903124e00b001d55aa9ffecsi205634plh.253.2024.01.25.17.28.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 17:28:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=axsI+Ry9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6856AB2125E for ; Fri, 26 Jan 2024 01:28:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 107ED138C; Fri, 26 Jan 2024 01:28:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="axsI+Ry9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C2E1EBE; Fri, 26 Jan 2024 01:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706232485; cv=none; b=Pla/Z9MvQypHY+fG/6mp6Z0PNRBt108bf591tOzUotmzDH1ItaVnLEcfXXlylRUq0kugMupD3x/Y5YqAAV47JQBZzLVEAd0+urkRUDmV9AZdxs8jT2FnOZ9m46veZ/CwIeoELvcsYAxNtk9BW65z1yG8Xjgnq2R448D2gRLoh28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706232485; c=relaxed/simple; bh=bZlX9cUI6w67vtkj69iIAjpu7YMBHhLSx3TrsQFcCVA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tWB+raCLJHwkzJuwcreniR67WfOVMD1M3f5m/cTCtCgE/A3xD5hWLZaaXsicW7WLBOAPh0xe9XhYaMY/7aaI9xpzOUiXzH0noKVeT0GTkIZdzjqgfZ4amYVFtv603fzsQ5TxhKexgJnhWEFZBADnX1CA4q9WIX6lCdWwVT+FqJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=axsI+Ry9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FEF5C433F1; Fri, 26 Jan 2024 01:28:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706232484; bh=bZlX9cUI6w67vtkj69iIAjpu7YMBHhLSx3TrsQFcCVA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=axsI+Ry9/nH8tehj4XSMn0DSClxkGB1iHb+8GWqKbL4B9TzOgERO7oYCN63NbNmjN 9AbkuMOxK59KYJx/duEk8WFxf3Ai4TpJbPhPbuTR59Z5DEPkb0S3PXsYVg86kHOC0Q Q4/mbEVroaZv3l30ALMalMRjJoalAjEoARsd4E4vbH1KqJijt8oZ0fR3jURH8/H8y/ bVnmh1WcegGz+tzEIbyOYCPjfvxJoypgFN267niTZ3uhlxVzEIpORfIhqtxBBzZtaT sn7Eamo9AgbUhlIOyPsHD3Ctv3J4K7F6v0laatull0f2QrQKsjxoUz32tCFCMemFH5 DtEwarYLWAfAg== Date: Thu, 25 Jan 2024 17:28:03 -0800 From: Jakub Kicinski To: Sai Krishna Cc: , , , , , , , , Subject: Re: [net-next PATCH] octeontx2-pf: Reset MAC stats during probe Message-ID: <20240125172803.01189ac4@kernel.org> In-Reply-To: <20240125110601.124209-1-saikrishnag@marvell.com> References: <20240125110601.124209-1-saikrishnag@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 25 Jan 2024 16:36:01 +0530 Sai Krishna wrote: > Reset CGX/RPM MAC HW statistics at the time of driver probe() > > Also added a devlink option to do the same at runtime, this will be > helpful during debug. > > Usage: Reset MAC stats > devlink dev param set pci/0002:03:00.0 name mac_stats_reset value true > cmode runtime Where are the stats reported? It'd be more intuitive to add the ability to reset stats to whatever interface is used to report them. Or one of your reset interfaces (devlink dev reload).