diff options
author | Ariel Elior <ariele@broadcom.com> | 2012-09-20 05:26:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-21 13:27:16 -0400 |
commit | 185d4c8bf579322e1c2835d70729bc30f6f80f55 (patch) | |
tree | 77bbf9c042502f1c89f87f1dab74d4b3ae5c1791 | |
parent | c0d680e577ff171e7b37dbdb1b1bf5451e851f04 (diff) | |
download | linux-stable-185d4c8bf579322e1c2835d70729bc30f6f80f55.tar.gz linux-stable-185d4c8bf579322e1c2835d70729bc30f6f80f55.tar.bz2 linux-stable-185d4c8bf579322e1c2835d70729bc30f6f80f55.zip |
bnx2x: remove false warning regarding interrupt number
Since version 7.4 the FW configures in the pci config space the max
number of interrupts available to the physical function, instead of
the exact number to use.
This causes a false warning in driver when comparing the number of
configured interrupts to the number about to be used.
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 211753e01f81..0875ecfe3372 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -9831,12 +9831,13 @@ static void __devinit bnx2x_get_igu_cam_info(struct bnx2x *bp) } #ifdef CONFIG_PCI_MSI - /* - * It's expected that number of CAM entries for this functions is equal - * to the number evaluated based on the MSI-X table size. We want a - * harsh warning if these values are different! + /* Due to new PF resource allocation by MFW T7.4 and above, it's + * optional that number of CAM entries will not be equal to the value + * advertised in PCI. + * Driver should use the minimal value of both as the actual status + * block count */ - WARN_ON(bp->igu_sb_cnt != igu_sb_cnt); + bp->igu_sb_cnt = min_t(int, bp->igu_sb_cnt, igu_sb_cnt); #endif if (igu_sb_cnt == 0) |