[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <504C9EFCA2D0054393414C9CB605C37F2B73D8@SJEXCHMB06.corp.ad.broadcom.com>
Date: Thu, 13 Sep 2012 20:35:40 +0000
From: "Dmitry Kravkov" <dmitry@...adcom.com>
To: "David Miller" <davem@...emloft.net>,
"Yuval Mintz" <yuvalmin@...adcom.com>
cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"Eilon Greenstein" <eilong@...adcom.com>
Subject: RE: [net PATCH v2 1/7] bnx2x: Avoid sending multiple statistics
queries
> -----Original Message-----
> From: David Miller [mailto:davem@...emloft.net]
> Sent: Thursday, September 13, 2012 11:17 PM
> To: Yuval Mintz
> Cc: netdev@...r.kernel.org; Dmitry Kravkov; Eilon Greenstein
> Subject: Re: [net PATCH v2 1/7] bnx2x: Avoid sending multiple statistics queries
>
> From: "Yuval Mintz" <yuvalmin@...adcom.com>
> Date: Tue, 11 Sep 2012 17:34:08 +0300
>
> > From: Dmitry Kravkov <dmitry@...adcom.com>
> >
> > During traffic when DCB is enabled, it is possible for multiple instances
> > of statistics queries to be sent to the chip - this may cause the FW to assert.
> >
> > This patch prevents the sending of an additional instance of statistics query
> > while the previous query hasn't completed.
> >
> > Signed-off-by: Dmitry Kravkov <dmitry@...adcom.com>
> > Signed-off-by: Yuval Mintz <yuvalmin@...adcom.com>
> > Signed-off-by: Eilon Greenstein <eilong@...adcom.com>
>
> This change results in no change in behavior as far as I can tell.
>
> > - if (bnx2x_storm_stats_update(bp) && (bp->stats_pending++ == 3)) {
> > - BNX2X_ERR("storm stats were not updated for 3 times\n");
> > - bnx2x_panic();
> > + if (bnx2x_storm_stats_update(bp)) {
> > + if (bp->stats_pending++ == 3) {
> > + BNX2X_ERR("storm stats were not updated for 3
> times\n");
> > + bnx2x_panic();
> > + }
>
> There is no difference between:
>
> if (A && B) {
> C;
> }
>
> and:
>
> if (A) {
> if (B) {
> C;
> }
> }
>
> Yet that's exactly what is happening in this patch.
>
> And such a do-nothing change is certainly not appropriate this late in
> the -rc series.
>
> I'm tossing this entire series, please sort this out and submit
> the real actual critical bug fixes.
return statement is not seen in the patch:
Before the change we returned from the function if (A &&B)
Now we return even if (A)
--
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