aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-07-11 02:08:15 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:37:46 -0400
commitaebd5e476ecc8ceb53577b20f2a352ff4ceffd8d (patch)
tree43103d35db1aa80440515db3fc968b0d96dd1d5e /drivers/infiniband/ulp/srp
parent3236822b1c9b67ad10745d965515b528818f1120 (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/infiniband/ulp/srp')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index d8d056e004bb..e616c4fc6ff0 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -1545,6 +1545,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
1545 1545
1546 memcpy(ids.port_id, &target->id_ext, 8); 1546 memcpy(ids.port_id, &target->id_ext, 8);
1547 memcpy(ids.port_id + 8, &target->ioc_guid, 8); 1547 memcpy(ids.port_id + 8, &target->ioc_guid, 8);
1548 ids.roles = SRP_RPORT_ROLE_TARGET;
1548 rport = srp_rport_add(target->scsi_host, &ids); 1549 rport = srp_rport_add(target->scsi_host, &ids);
1549 if (IS_ERR(rport)) { 1550 if (IS_ERR(rport)) {
1550 scsi_remove_host(target->scsi_host); 1551 scsi_remove_host(target->scsi_host);