diff options
author | Or Gerlitz <ogerlitz@voltaire.com> | 2006-05-02 20:46:36 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-05-10 11:11:38 -0400 |
commit | 264faaaa12544e7914928ad57ccba21907cad56b (patch) | |
tree | eb8a6993e43f3802b203b371b81fcfb89fc4f754 /include/scsi/scsi_transport_iscsi.h | |
parent | 169e1a2a8a789fa84254695ec6a56fc410bb19a9 (diff) |
[SCSI] iscsi: add transport end point callbacks
add transport end point callbacks so iscsi drivers that cannot connect
from userspace, like iscsi tcp, using sockets do not have to
implement their own socket infrastructure.
Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_transport_iscsi.h')
-rw-r--r-- | include/scsi/scsi_transport_iscsi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/scsi/scsi_transport_iscsi.h b/include/scsi/scsi_transport_iscsi.h index b332d6e839fe..c9e9475c6dff 100644 --- a/include/scsi/scsi_transport_iscsi.h +++ b/include/scsi/scsi_transport_iscsi.h | |||
@@ -88,7 +88,7 @@ struct iscsi_transport { | |||
88 | uint32_t cid); | 88 | uint32_t cid); |
89 | int (*bind_conn) (struct iscsi_cls_session *session, | 89 | int (*bind_conn) (struct iscsi_cls_session *session, |
90 | struct iscsi_cls_conn *cls_conn, | 90 | struct iscsi_cls_conn *cls_conn, |
91 | uint32_t transport_fd, int is_leading); | 91 | uint64_t transport_eph, int is_leading); |
92 | int (*start_conn) (struct iscsi_cls_conn *conn); | 92 | int (*start_conn) (struct iscsi_cls_conn *conn); |
93 | void (*stop_conn) (struct iscsi_cls_conn *conn, int flag); | 93 | void (*stop_conn) (struct iscsi_cls_conn *conn, int flag); |
94 | void (*destroy_conn) (struct iscsi_cls_conn *conn); | 94 | void (*destroy_conn) (struct iscsi_cls_conn *conn); |
@@ -119,6 +119,10 @@ struct iscsi_transport { | |||
119 | int (*xmit_mgmt_task) (struct iscsi_conn *conn, | 119 | int (*xmit_mgmt_task) (struct iscsi_conn *conn, |
120 | struct iscsi_mgmt_task *mtask); | 120 | struct iscsi_mgmt_task *mtask); |
121 | void (*session_recovery_timedout) (struct iscsi_cls_session *session); | 121 | void (*session_recovery_timedout) (struct iscsi_cls_session *session); |
122 | int (*ep_connect) (struct sockaddr *dst_addr, int non_blocking, | ||
123 | uint64_t *ep_handle); | ||
124 | int (*ep_poll) (uint64_t ep_handle, int timeout_ms); | ||
125 | void (*ep_disconnect) (uint64_t ep_handle); | ||
122 | }; | 126 | }; |
123 | 127 | ||
124 | /* | 128 | /* |