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)
commit4b72937774710e6c58a525516b0e2eafe696b580
tree159f5e9565c5078b331bc46600161fcc00ffaa6e
parentd514ecedaca35bd9d86a7a868acbfc6a6ee79eb4
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