From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] bnx2x: fix occasional statistics off-by-4GB error Date: Thu, 21 Mar 2013 17:25:23 -0400 (EDT) Message-ID: <20130321.172523.1037964587501349728.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: eilong@broadcom.com, eric.dumazet@gmail.com, dmitry@broadcom.com, netdev@vger.kernel.org, yuvalmin@broadcom.com To: zenczykowski@gmail.com Return-path: Received: from shards.monkeyblade.net ([149.20.54.216]:47250 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491Ab3CUVZZ convert rfc822-to-8bit (ORCPT ); Thu, 21 Mar 2013 17:25:25 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: =46rom: Maciej =AFenczykowski Date: Thu, 21 Mar 2013 14:23:47 -0700 > (a) The DIFF_64 macro is buggy in the case of underflow due to unsign= ed-ness > (b) Any code which does SUB/ADD should instead do ADD/SUB, because > SUB(A,B) is implemented via DIFF(A,B) and thus doesn't actually do > subtraction, but instead does A :=3D max(A-B, 0) > (c) there's a bunch of extra statistics it is trivial to export via > ethtool which make debugging stuff like this much easier Thanks for looking into this and the status update.