[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130321.172523.1037964587501349728.davem@davemloft.net>
Date: Thu, 21 Mar 2013 17:25:23 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: zenczykowski@...il.com
Cc: eilong@...adcom.com, eric.dumazet@...il.com, dmitry@...adcom.com,
netdev@...r.kernel.org, yuvalmin@...adcom.com
Subject: Re: [PATCH] bnx2x: fix occasional statistics off-by-4GB error
From: Maciej Żenczykowski <zenczykowski@...il.com>
Date: Thu, 21 Mar 2013 14:23:47 -0700
> (a) The DIFF_64 macro is buggy in the case of underflow due to unsigned-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 := 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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists