]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerDan Duval <dan.duval@oracle.com>
Mon, 19 Oct 2015 22:12:29 +0000 (18:12 -0400)
commit97e35f15f4c10d140b772b2fa416f6aa48395689
tree70447e598c11c4cbd3c49445162c025a1603f74f
parent8f22b368e4539e556becb64d6464d309c0e93eab
bnx2: Fix bandwidth allocation for some MF modes

Orabug: 22066196

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>
(cherry picked from commit da3cc2da7c08dc1f4371a4cc2eb83b22a0cf83a8)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c