[SCSI] qla2xxx: Use bitmap to store loop_id's for fcports.
authorChad Dupuis <chad.dupuis@qlogic.com>
Wed, 22 Aug 2012 18:21:00 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:03:36 +0000 (12:03 +0400)
commit5f16b331d83757ad5154af07b449c722fef45d5e
treee5ba70e771d5de6cf0e2d5ecf7ceb2ae9a90946d
parent09543c09ea37e15f806f29f0cdcbcc9417dbfa01
[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>
drivers/scsi/qla2xxx/qla_dbg.c
drivers/scsi/qla2xxx/qla_def.h
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_inline.h
drivers/scsi/qla2xxx/qla_os.c