From: David Miller <davem@davemloft.net>
To: zenczykowski@gmail.com
Cc: eilong@broadcom.com, eric.dumazet@gmail.com, dmitry@broadcom.com,
netdev@vger.kernel.org, yuvalmin@broadcom.com
Subject: Re: [PATCH] bnx2x: fix occasional statistics off-by-4GB error
Date: Thu, 21 Mar 2013 17:25:23 -0400 (EDT) [thread overview]
Message-ID: <20130321.172523.1037964587501349728.davem@davemloft.net> (raw)
In-Reply-To: <CAHo-Oow3D1haZ8MzV7B0boc-fzL-S7DT+6QuOEgQCSYcvenXsQ@mail.gmail.com>
From: Maciej Żenczykowski <zenczykowski@gmail.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.
prev parent reply other threads:[~2013-03-21 21:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-15 21:03 bnx2x statistics occasionally wrong by near multiples of 4GB Maciej Żenczykowski
2013-03-15 21:56 ` [PATCH] bnx2x: fix occasional statistics off-by-4GB error Maciej Żenczykowski
2013-03-17 13:10 ` Dmitry Kravkov
2013-03-17 18:24 ` David Miller
2013-03-17 19:37 ` Eilon Greenstein
2013-03-17 20:25 ` Eric Dumazet
2013-03-17 20:53 ` Eilon Greenstein
2013-03-17 23:17 ` Eric Dumazet
2013-03-18 7:27 ` Eilon Greenstein
2013-03-18 6:18 ` Maciej Żenczykowski
2013-03-18 10:06 ` Eilon Greenstein
2013-03-18 17:13 ` David Miller
2013-03-18 19:54 ` Maciej Żenczykowski
2013-03-18 20:05 ` David Miller
2013-03-18 20:06 ` Maciej Żenczykowski
2013-03-18 20:35 ` Eric Dumazet
2013-03-18 20:36 ` Maciej Żenczykowski
2013-03-21 21:23 ` Maciej Żenczykowski
2013-03-21 21:25 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130321.172523.1037964587501349728.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dmitry@broadcom.com \
--cc=eilong@broadcom.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=yuvalmin@broadcom.com \
--cc=zenczykowski@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).