Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efde73a3 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

bnx2: Check BNX2_FLAG_USING_MSIX flag when setting up MSIX.



Checking the flag is more correct than checking bp->irq_nvecs. By
accident it is not a problem because we always have more than 1
vectors when using MSIX mode.

Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarBenjamin Li <benli@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 496c185c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4940,7 +4940,7 @@ bnx2_init_chip(struct bnx2 *bp)
		      BNX2_HC_CONFIG_COLLECT_STATS;
		      BNX2_HC_CONFIG_COLLECT_STATS;
	}
	}


	if (bp->irq_nvecs > 1) {
	if (bp->flags & BNX2_FLAG_USING_MSIX) {
		REG_WR(bp, BNX2_HC_MSIX_BIT_VECTOR,
		REG_WR(bp, BNX2_HC_MSIX_BIT_VECTOR,
		       BNX2_HC_MSIX_BIT_VECTOR_VAL);
		       BNX2_HC_MSIX_BIT_VECTOR_VAL);