summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_transport_srp.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-07-11 08:08:19 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 20:37:53 +0200
commit62fe88261b9d865264d857777cf58a0335513151 (patch)
treedb111392d242cabfddebbee7eae6b6d971eec35e /include/scsi/scsi_transport_srp.h
parent[SCSI] tgt: add I_T nexus support (diff)
downloadlinux-62fe88261b9d865264d857777cf58a0335513151.tar.xz
linux-62fe88261b9d865264d857777cf58a0335513151.zip
[SCSI] srp_transport: add target driver support
This adds minimum target driver support: - srp_rport_{add,del} calls scsi_tgt_it_nexus_{create,destroy} for target drivers. - add a callback to notify target drivers of the nexus operation results to srp_function_template. 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 '')
-rw-r--r--include/scsi/scsi_transport_srp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h
index 08b4a28a77b8..a705dbc016b3 100644
--- a/include/scsi/scsi_transport_srp.h
+++ b/include/scsi/scsi_transport_srp.h
@@ -21,7 +21,8 @@ struct srp_rport {
};
struct srp_function_template {
- /* later */
+ /* for target drivers */
+ int (* it_nexus_response)(struct Scsi_Host *, u64, int);
};
extern struct scsi_transport_template *