[SCSI] qla2xxx: Use bitmap to store loop_id's for fcports.
Store used fcport loop_id's in a bitmap so that as opposed to looping through all fcports to find the next free loop_id, new loop_id lookup can be just be done via bitops. [jejb: plus fix for incorrect LOOPID_MAP_SIZE from Andrew Vasquez] Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
committed by
James Bottomley
parent
09543c09ea
commit
5f16b331d8
@@ -129,6 +129,7 @@
|
||||
#define MAX_FIBRE_DEVICES_2400 2048
|
||||
#define MAX_FIBRE_DEVICES_LOOP 128
|
||||
#define MAX_FIBRE_DEVICES_MAX MAX_FIBRE_DEVICES_2400
|
||||
#define LOOPID_MAP_SIZE (ha->max_fibre_devices)
|
||||
#define MAX_FIBRE_LUNS 0xFFFF
|
||||
#define MAX_HOST_COUNT 16
|
||||
|
||||
@@ -2918,6 +2919,7 @@ struct qla_hw_data {
|
||||
void *md_dump;
|
||||
uint32_t md_dump_size;
|
||||
|
||||
void *loop_id_map;
|
||||
struct qlt_hw_data tgt;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user