diff options
author | FUJITA Tomonori <tomof@acm.org> | 2007-07-11 02:08:15 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:37:46 -0400 |
commit | aebd5e476ecc8ceb53577b20f2a352ff4ceffd8d (patch) | |
tree | 43103d35db1aa80440515db3fc968b0d96dd1d5e /drivers/scsi/ibmvscsi/ibmvscsi.c | |
parent | 3236822b1c9b67ad10745d965515b528818f1120 (diff) |
[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.c | 1 |
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) | |||
1599 | /* we don't have a proper target_port_id so let's use the fake one */ | 1599 | /* we don't have a proper target_port_id so let's use the fake one */ |
1600 | memcpy(ids.port_id, hostdata->madapter_info.partition_name, | 1600 | memcpy(ids.port_id, hostdata->madapter_info.partition_name, |
1601 | sizeof(ids.port_id)); | 1601 | sizeof(ids.port_id)); |
1602 | ids.roles = SRP_RPORT_ROLE_TARGET; | ||
1602 | rport = srp_rport_add(host, &ids); | 1603 | rport = srp_rport_add(host, &ids); |
1603 | if (IS_ERR(rport)) | 1604 | if (IS_ERR(rport)) |
1604 | goto add_srp_port_failed; | 1605 | goto add_srp_port_failed; |