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 /include | |
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 'include')
-rw-r--r-- | include/scsi/scsi_transport_srp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h index adbfca402a6..08b4a28a77b 100644 --- a/include/scsi/scsi_transport_srp.h +++ b/include/scsi/scsi_transport_srp.h | |||
@@ -5,14 +5,19 @@ | |||
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | #include <linux/mutex.h> | 6 | #include <linux/mutex.h> |
7 | 7 | ||
8 | #define SRP_RPORT_ROLE_INITIATOR 0 | ||
9 | #define SRP_RPORT_ROLE_TARGET 1 | ||
10 | |||
8 | struct srp_rport_identifiers { | 11 | struct srp_rport_identifiers { |
9 | u8 port_id[16]; | 12 | u8 port_id[16]; |
13 | u8 roles; | ||
10 | }; | 14 | }; |
11 | 15 | ||
12 | struct srp_rport { | 16 | struct srp_rport { |
13 | struct device dev; | 17 | struct device dev; |
14 | 18 | ||
15 | u8 port_id[16]; | 19 | u8 port_id[16]; |
20 | u8 roles; | ||
16 | }; | 21 | }; |
17 | 22 | ||
18 | struct srp_function_template { | 23 | struct srp_function_template { |