summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayamohan Kallickal2013-04-06 05:38:24 +0200
committerJames Bottomley2013-05-02 17:08:21 +0200
commitbf9131cbb860fbd0faf5483d3df5d60b25a3f47c (patch)
treec90a251ccfedba9a617935efebec95f1f7aae4b2
parent[SCSI] be2iscsi: Fix MBX Command issues (diff)
downloadkernel-qcow2-linux-bf9131cbb860fbd0faf5483d3df5d60b25a3f47c.tar.gz
kernel-qcow2-linux-bf9131cbb860fbd0faf5483d3df5d60b25a3f47c.tar.xz
kernel-qcow2-linux-bf9131cbb860fbd0faf5483d3df5d60b25a3f47c.zip
[SCSI] be2iscsi: Fix MSIX support in SKH-R to 32
This patch limits the max number of msix vectors to 32. Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/be2iscsi/be_main.c1
-rw-r--r--drivers/scsi/be2iscsi/be_main.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 3fb997fc6015..72e4052238cd 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -4835,6 +4835,7 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
case OC_SKH_ID1:
phba->generation = BE_GEN4;
phba->iotask_fn = beiscsi_iotask_v2;
+ break;
default:
phba->generation = 0;
}
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
index 5946577d79d6..e53d08777c01 100644
--- a/drivers/scsi/be2iscsi/be_main.h
+++ b/drivers/scsi/be2iscsi/be_main.h
@@ -66,7 +66,7 @@
#define MAX_CPUS 64
#define BEISCSI_MAX_NUM_CPUS 7
-#define OC_SKH_MAX_NUM_CPUS 63
+#define OC_SKH_MAX_NUM_CPUS 31
#define BEISCSI_SGLIST_ELEMENTS 30