summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ibmvscsi/ibmvscsi.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-07-11 15:08:15 +0900
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:37:46 -0400
commitaebd5e476ecc8ceb53577b20f2a352ff4ceffd8d (patch)
tree43103d35db1aa80440515db3fc968b0d96dd1d5e /drivers/scsi/ibmvscsi/ibmvscsi.c
parent3236822b1c9b67ad10745d965515b528818f1120 (diff)
downloadblackbird-op-linux-aebd5e476ecc8ceb53577b20f2a352ff4ceffd8d.tar.gz
blackbird-op-linux-aebd5e476ecc8ceb53577b20f2a352ff4ceffd8d.zip
[SCSI] transport_srp: add rport roles attribute
This adds a 'roles' attribute to rport like transport_fc. The role can be initiator or target. That is, the initiator driver creates target remote ports and the target driver creates initiator remote ports. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/ibmvscsi/ibmvscsi.c')
-rw-r--r--drivers/scsi/ibmvscsi/ibmvscsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index e6f937eeb78f..93bd01b1e4b5 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -1599,6 +1599,7 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id)
/* we don't have a proper target_port_id so let's use the fake one */
memcpy(ids.port_id, hostdata->madapter_info.partition_name,
sizeof(ids.port_id));
+ ids.roles = SRP_RPORT_ROLE_TARGET;
rport = srp_rport_add(host, &ids);
if (IS_ERR(rport))
goto add_srp_port_failed;
OpenPOWER on IntegriCloud