[SCSI] hpsa: eliminate 8 external target limitation
authorScott Teel <scott.teel@hp.com>
Thu, 19 Jan 2012 20:01:19 +0000 (14:01 -0600)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:56 +0000 (08:08 -0600)
commitaca4a5200dc2b0835f5477d6609a05b0401a91f3
tree46a49905dd72544cc7b2aa608ce072addd1f474c
parent1f310bde4631185d4462dbd544b3fa82513cdb6f
[SCSI] hpsa: eliminate 8 external target limitation

Driver limits SAS external target IDs to range 1-8.
Need to increase limit and clean up overlapping concepts of targets and paths
in the code.

There are several defined constants that control this:
HPSA_MAX_TARGETS_PER_CTLR     16
MAX_MSA2XXX_ENCLOSURES        32
HPSA_MAX_PATHS                8

We can condense this to one constant:
MAX_EXT_TARGETS               32

SAS switches allow for 8 connections, and there is capacity for 4 switches per
enclosure in largest blade enclosure type.

Signed-off-by: Scott Teel <scott.teel@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h