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 EE5F920EE for ; Wed, 12 Jul 2023 04:24:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A0A2C433C7; Wed, 12 Jul 2023 04:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689135862; bh=sApkGTxVppJpeqLRY6wnIYcim0hmFTc9eOUAzv5VBXU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=B/OIz9bWDCKAf6llHq0XijZV3b2JTwo1EdyITVhEWoKqa5BhJRSOsT4uzvZ32hStf XU7b1L6fKFk/FOZ+vQx4G5OcZoiCsWBsmsUeGMUqrwOE+l+pS433OgUsb8xUGTVldJ kE9ayuKO6wtjSUeHj7Jmbjl0HGaWGxogveL8xzIl2spbFGbIo288DIzxK8kNv7Rfxf nUz4HjtygUWt7KED6xbOMMfgyhd2Sf+1un9MHJAx/7Frip/+ZQcuSMtabDbf8EkK+G iedFzxvc+lMJ9WGYSQwoDCKdxA1sim9ExgCH6ceYarbQdbU0RbGsxGs0TbSZ/Trfxn NECAPOSa1djmA== Date: Tue, 11 Jul 2023 21:24:21 -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: <20230711212421.02a36ab3@kernel.org> In-Reply-To: References: <20230710205611.1198878-1-kuba@kernel.org> <20230710205611.1198878-4-kuba@kernel.org> <20230711180937.3c0262a9@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:11:02 -0700 Michael Chan wrote: > These are per ring counters. During complete reset, we free the ring > and allocate a new ring. So re-applying these counters to the new > ring doesn't make sense because the new ring is not necessarily the > same as the old one. So I think we'll need to have a total for each > of these and we'll save the snapshot of the total before reset and > restore the snapshot after reset. Does that make sense? Not entirely sure what you mean by total. The counters are reported in ethool -S per ring and (aggregated) in ip -s -s. 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. ip -s -s sort of follows so no need discussing. You mention reset but the errors counters should survive close() / open() cycles as well.