diff options
| -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) | |||
| 9831 | } | 9831 | } |
| 9832 | 9832 | ||
| 9833 | #ifdef CONFIG_PCI_MSI | 9833 | #ifdef CONFIG_PCI_MSI |
| 9834 | /* | 9834 | /* Due to new PF resource allocation by MFW T7.4 and above, it's |
| 9835 | * It's expected that number of CAM entries for this functions is equal | 9835 | * optional that number of CAM entries will not be equal to the value |
| 9836 | * to the number evaluated based on the MSI-X table size. We want a | 9836 | * advertised in PCI. |
| 9837 | * harsh warning if these values are different! | 9837 | * Driver should use the minimal value of both as the actual status |
| 9838 | * block count | ||
| 9838 | */ | 9839 | */ |
| 9839 | WARN_ON(bp->igu_sb_cnt != igu_sb_cnt); | 9840 | bp->igu_sb_cnt = min_t(int, bp->igu_sb_cnt, igu_sb_cnt); |
| 9840 | #endif | 9841 | #endif |
| 9841 | 9842 | ||
| 9842 | if (igu_sb_cnt == 0) | 9843 | if (igu_sb_cnt == 0) |
