From mboxrd@z Thu Jan 1 00:00:00 1970 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 18F091D0E0 for ; Wed, 12 Jul 2023 16:35:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B445FC433C8; Wed, 12 Jul 2023 16:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689179707; bh=hjFx1hhmtYF4PSYrXoru+CWA33ekKwil6ULMZ1eDwLY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PNvMHgsqBBgFvjf6LA6EjaXIen6JFedwcMxpeeGWVh7+bEkRYuBjWnj/yzuFcLRL7 1m4vDSSzaqbdGHjW1OyrWfZsLA43JVuBQlM8zesF5U9AFYkjtt6afZ/WIOZOuJOWpQ ukEwL7pjn64eQZ2PfcwFKaSLdd8+JiSq+Zf0z8j3nWoqZvnU2EK7r6mpDagrC1kNx2 vCVJ5obyeXdHlvIPVi+xk+V2B0RO1PFpyv+nJANeaKTPpVVtvozDvohBTC7larsJIh 1XzNGrRK5GTx3NNHECndMVqWodcnbq8kO0byLLkfosoJ/QBciLSiGcZ6x+QD7IFFTw 99Qgp4qiPhRmw== Date: Wed, 12 Jul 2023 09:35:06 -0700 From: Jakub Kicinski To: Michael Chan Cc: davem@davemloft.net, netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com Subject: Re: [PATCH net-next 3/3] eth: bnxt: handle invalid Tx completions more gracefully Message-ID: <20230712093506.6a1f229a@kernel.org> In-Reply-To: References: <20230710205611.1198878-1-kuba@kernel.org> <20230710205611.1198878-4-kuba@kernel.org> <20230711180937.3c0262a9@kernel.org> <20230711212421.02a36ab3@kernel.org> Precedence: bulk X-Mailing-List: netdev@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 Tue, 11 Jul 2023 21:50:16 -0700 Michael Chan wrote: > > Are you saying that in ethtool -S in addition to per-ring counts > > we'd report a "total" which is sum(current per ring) + saved? > > If so - that makes sense, yup. > > Yes, for example, we have "rx_resets" which is per ring. We'll add a > "rx_total_resets" which is the sum of all current "rx_resets" + the > saved snapshot. The per ring "rx_resets" will reset to 0 during each > reset (including ifdown). But "rx_total_resets" will be saved across > reset. > > > You mention reset but the errors counters should survive close() / > > open() cycles as well. > > Yes. It's the same reset whether it is ifdown/ifup or reset. Makes sense, and sounds good!