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.]
(backported from upstream commit
96b0accb8867627250e911f8929e6c01da1ffd40)
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
FUNC_MF_CFG_MAX_BW_SHIFT;
if (!max_cfg && !bp->prev_max_cfg_invalid[vn])
- BNX2X_ERR("Illegal configuration detected for Max BW "
- "on vn %d - using 100 instead\n", vn);
+ DP(NETIF_MSG_LINK,
+ "Max BW configured to 0 - using 100 instead\n");
bp->prev_max_cfg_invalid[vn] = !max_cfg;
return max_cfg ?: 100;