aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-08-19 00:51:01 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-19 00:51:01 -0400
commit96b0accb8867627250e911f8929e6c01da1ffd40 (patch)
tree9c7b907724da173f92a2cbcf914df82ea1aa3b3b /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
parent3b3bceef26f8273b1f51c503e9485a35b8326417 (diff)
bnx2x: downgrade Max BW error message to debug
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". [v2: use DP(), not BNX2X_DBG_ERR(); recommended by Eilon Greenstein.] Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Acked-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
index 501a24b4767e..f290b23e57e7 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
@@ -1481,8 +1481,8 @@ static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg)
1481 u16 max_cfg = (mf_cfg & FUNC_MF_CFG_MAX_BW_MASK) >> 1481 u16 max_cfg = (mf_cfg & FUNC_MF_CFG_MAX_BW_MASK) >>
1482 FUNC_MF_CFG_MAX_BW_SHIFT; 1482 FUNC_MF_CFG_MAX_BW_SHIFT;
1483 if (!max_cfg) { 1483 if (!max_cfg) {
1484 BNX2X_ERR("Illegal configuration detected for Max BW - " 1484 DP(NETIF_MSG_LINK,
1485 "using 100 instead\n"); 1485 "Max BW configured to 0 - using 100 instead\n");
1486 max_cfg = 100; 1486 max_cfg = 100;
1487 } 1487 }
1488 return max_cfg; 1488 return max_cfg;