aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfad_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bfa/bfad_intr.c')
-rw-r--r--drivers/scsi/bfa/bfad_intr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfad_intr.c b/drivers/scsi/bfa/bfad_intr.c
index 2b7dbecbebca..56a351584f0c 100644
--- a/drivers/scsi/bfa/bfad_intr.c
+++ b/drivers/scsi/bfa/bfad_intr.c
@@ -26,7 +26,11 @@ BFA_TRC_FILE(LDRV, INTR);
26static int msix_disable_cb; 26static int msix_disable_cb;
27static int msix_disable_ct; 27static int msix_disable_ct;
28module_param(msix_disable_cb, int, S_IRUGO | S_IWUSR); 28module_param(msix_disable_cb, int, S_IRUGO | S_IWUSR);
29MODULE_PARM_DESC(msix_disable_cb, "Disable MSIX for Brocade-415/425/815/825"
30 " cards, default=0, Range[false:0|true:1]");
29module_param(msix_disable_ct, int, S_IRUGO | S_IWUSR); 31module_param(msix_disable_ct, int, S_IRUGO | S_IWUSR);
32MODULE_PARM_DESC(msix_disable_ct, "Disable MSIX for Brocade-1010/1020/804"
33 " cards, default=0, Range[false:0|true:1]");
30/** 34/**
31 * Line based interrupt handler. 35 * Line based interrupt handler.
32 */ 36 */
@@ -151,8 +155,8 @@ bfad_setup_intr(struct bfad_s *bfad)
151 /* Set up the msix entry table */ 155 /* Set up the msix entry table */
152 bfad_init_msix_entry(bfad, msix_entries, mask, max_bit); 156 bfad_init_msix_entry(bfad, msix_entries, mask, max_bit);
153 157
154 if ((pdev->device == BFA_PCI_DEVICE_ID_CT && !msix_disable_ct) || 158 if ((bfa_asic_id_ct(pdev->device) && !msix_disable_ct) ||
155 (pdev->device != BFA_PCI_DEVICE_ID_CT && !msix_disable_cb)) { 159 (!bfa_asic_id_ct(pdev->device) && !msix_disable_cb)) {
156 160
157 error = pci_enable_msix(bfad->pcidev, msix_entries, bfad->nvec); 161 error = pci_enable_msix(bfad->pcidev, msix_entries, bfad->nvec);
158 if (error) { 162 if (error) {