diff options
author | Jayamohan Kallickal <jayamohank@gmail.com> | 2013-04-05 20:38:26 -0700 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 08:08:38 -0700 |
commit | 2c9dfd364929585e0685f4f69d10130f3ca7acdd (patch) | |
tree | bac479932a2834a8a9356833c802ebf16a8ffc72 /drivers/scsi/be2iscsi/be_main.h | |
parent | 43f388b02e5c3a10a89f7163f38787a98638eb18 (diff) | |
download | blackbird-obmc-linux-2c9dfd364929585e0685f4f69d10130f3ca7acdd.tar.gz blackbird-obmc-linux-2c9dfd364929585e0685f4f69d10130f3ca7acdd.zip |
[SCSI] be2iscsi: Fix MACRO for checking the adapter type
Fixed the code flow based on the MACRO defined to check for
adapter.
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>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index b098b5b7d188..77b13c3e463e 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h @@ -265,7 +265,9 @@ struct invalidate_command_table { unsigned short cid; } __packed; -#define chip_skh_r(pdev) (pdev->device == OC_SKH_ID1) +#define chip_be2(phba) (phba->generation == BE_GEN2) +#define chip_be3_r(phba) (phba->generation == BE_GEN3) +#define is_chip_be2_be3r(phba) (chip_be3_r(phba) || (chip_be2(phba))) struct beiscsi_hba { struct hba_parameters params; struct hwi_controller *phwi_ctrlr; |