summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_main.h
diff options
context:
space:
mode:
authorJitendra Bhivare2016-01-20 09:40:54 +0100
committerMartin K. Petersen2016-02-24 03:27:02 +0100
commit4570f1618ec045ade994237d3f4f5644181845cc (patch)
tree3f06dc61865e2afb92ab8b27911657182e4fd03d /drivers/scsi/be2iscsi/be_main.h
parentbe2iscsi: Fix to handle misconfigured optics events (diff)
downloadkernel-qcow2-linux-4570f1618ec045ade994237d3f4f5644181845cc.tar.gz
kernel-qcow2-linux-4570f1618ec045ade994237d3f4f5644181845cc.tar.xz
kernel-qcow2-linux-4570f1618ec045ade994237d3f4f5644181845cc.zip
be2iscsi: Add FW config validation
System crash in I+T card personality. Fix to add validation for ULP in initiator mode, physical port number, and supported queue, icd, cid counts. Signed-off-by: Jitendra Bhivare <jitendra.bhivare@avagotech.com> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r--drivers/scsi/be2iscsi/be_main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h
index c09082aef7ae..f89861be2e39 100644
--- a/drivers/scsi/be2iscsi/be_main.h
+++ b/drivers/scsi/be2iscsi/be_main.h
@@ -397,7 +397,9 @@ struct beiscsi_hba {
* group together since they are used most frequently
* for cid to cri conversion
*/
+#define BEISCSI_PHYS_PORT_MAX 4
unsigned int phys_port;
+ /* valid values of phys_port id are 0, 1, 2, 3 */
unsigned int eqid_count;
unsigned int cqid_count;
unsigned int iscsi_cid_start[BEISCSI_ULP_COUNT];