From patchwork Wed Aug 17 17:44:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eilon Greenstein X-Patchwork-Id: 110341 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 0A8C0B6F99 for ; Thu, 18 Aug 2011 03:44:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751587Ab1HQRof (ORCPT ); Wed, 17 Aug 2011 13:44:35 -0400 Received: from mms2.broadcom.com ([216.31.210.18]:2585 "EHLO mms2.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751202Ab1HQRoe (ORCPT ); Wed, 17 Aug 2011 13:44:34 -0400 Received: from [10.9.200.131] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.2)); Wed, 17 Aug 2011 10:49:55 -0700 X-Server-Uuid: D3C04415-6FA8-4F2C-93C1-920E106A2031 Received: from mail-irva-13.broadcom.com (10.11.16.103) by IRVEXCHHUB01.corp.ad.broadcom.com (10.9.200.131) with Microsoft SMTP Server id 8.2.247.2; Wed, 17 Aug 2011 10:44:18 -0700 Received: from [10.185.6.73] (lb-tlvb-eilong.il.broadcom.com [10.185.6.73]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 626AA74D05; Wed, 17 Aug 2011 10:44:17 -0700 (PDT) Subject: Re: [PATCH] bnx2x: downgrade Max BW error message to debug From: "Eilon Greenstein" Reply-to: eilong@broadcom.com To: "Michal Schmidt" cc: "netdev@vger.kernel.org" , "Dmitry Kravkov" , "Vladislav Zolotarov" In-Reply-To: <20110817175037.2777724a@brian.englab.brq.redhat.com> References: <20110812143324.5740.45824.stgit@dhcp-29-224.brq.redhat.com> <1313405680.31417.6.camel@lb-tlvb-eilong.il.broadcom.com> <4E490A1E.3060209@redhat.com> <1313411585.31417.35.camel@lb-tlvb-eilong.il.broadcom.com> <4E493798.7010405@redhat.com> <1313434042.30399.0.camel@lb-tlvb-eilong.il.broadcom.com> <4E4A56C0.4030009@redhat.com> <1313498708.24298.0.camel@lb-tlvb-eilong.il.broadcom.com> <20110817175037.2777724a@brian.englab.brq.redhat.com> Organization: Broadcom Date: Wed, 17 Aug 2011 20:44:15 +0300 Message-ID: <1313603055.12483.3.camel@lb-tlvb-eilong.il.broadcom.com> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 X-WSS-ID: 625520C93W45784773-01-01 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 2011-08-17 at 08:50 -0700, Michal Schmidt wrote: > There are valid configurations where Max BW is configured to zero for > some VNs. > Print the message only if debugging is enabled and do not call the > configuration "illegal". > > Signed-off-by: Michal Schmidt > > --- > drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h > index 223bfee..8245e02 100644 > --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h > +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h > @@ -1481,8 +1481,7 @@ static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg) > u16 max_cfg = (mf_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> > FUNC_MF_CFG_MAX_BW_SHIFT; > if (!max_cfg) { > - BNX2X_ERR("Illegal configuration detected for Max BW - " > - "using 100 instead\n"); > + BNX2X_DBG_ERR("Max BW configured to 0 - using 100 instead\n"); I think that we should use DP instead of DBG_ERR. How about this one: Can you sing-off on somethign like this? Thanks, Eilon --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h index 223bfee..70dc7bc 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h @@ -1481,8 +1481,7 @@ static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg) u16 max_cfg = (mf_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> FUNC_MF_CFG_MAX_BW_SHIFT; if (!max_cfg) { - BNX2X_ERR("Illegal configuration detected for Max BW - " - "using 100 instead\n"); + DP(NETIF_MSG_LINK, "Max BW configured to 0 - using 100 instead\n"); max_cfg = 100; } return max_cfg;