diff options
author | Bart Van Assche <bvanassche@acm.org> | 2011-09-16 20:41:13 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-11-30 17:40:33 -0800 |
commit | dc1bdbd9b8a077018d82230bc378f1bcfd8adba8 (patch) | |
tree | e6484d9d378a0bad8a4f7057ae29d4164b33278e /include/scsi | |
parent | 7e1265bfe75f0ef1a9f5cfde202df68b7e35a53f (diff) | |
download | talos-obmc-linux-dc1bdbd9b8a077018d82230bc378f1bcfd8adba8.tar.gz talos-obmc-linux-dc1bdbd9b8a077018d82230bc378f1bcfd8adba8.zip |
IB/srp: Allow SRP disconnect through sysfs
Make it possible to disconnect the IB RC connection used by the SRP
protocol to communicate with a target.
Have the SRP transport layer create a sysfs "delete" attribute for
initiator drivers that support this functionality.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_transport_srp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h index 9c60ca1c08c5..ff0f04ac91aa 100644 --- a/include/scsi/scsi_transport_srp.h +++ b/include/scsi/scsi_transport_srp.h @@ -14,13 +14,21 @@ struct srp_rport_identifiers { }; struct srp_rport { + /* for initiator and target drivers */ + struct device dev; u8 port_id[16]; u8 roles; + + /* for initiator drivers */ + + void *lld_data; /* LLD private data */ }; struct srp_function_template { + /* for initiator drivers */ + void (*rport_delete)(struct srp_rport *rport); /* for target drivers */ int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64, int); int (* it_nexus_response)(struct Scsi_Host *, u64, int); |