bnx2: Fix bandwidth allocation for some MF modes
authorYuval Mintz <Yuval.Mintz@qlogic.com>
Mon, 17 Aug 2015 05:28:25 +0000 (08:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Aug 2015 17:27:57 +0000 (10:27 -0700)
commitda3cc2da7c08dc1f4371a4cc2eb83b22a0cf83a8
tree159f5e9565c5078b331bc46600161fcc00ffaa6e
parent1e3136789975f03e461798149309034e5213c1b4
bnx2: Fix bandwidth allocation for some MF modes

Management firmware tells driver in case bandwidth configuration for
a specific function exists, but [regretably] the same field has different
meanings depending on the multi-function mode - it can either be
a percentile value or an actual speed.

For newer multi-function modes current logic is incorrect -
driver understands values as actual speeds instead of percentages,
causing the resulting chip configuration to be incorrect.

Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c