summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-05-19 21:20:44 -0500
committerMike Christie <michaelc@cs.wisc.edu>2008-05-19 21:20:44 -0500
commit74489b2eb9f3c5d96c64f859de965cff10bb457f (patch)
treeb1adea6e5d1ae796fd79992a9e13faa46a02ea5d /include
parentdc75ff01ee126dbde42d4f2fe975c17e25719cf9 (diff)
downloadopen-iscsi-74489b2eb9f3c5d96c64f859de965cff10bb457f.tar.gz
pass ep to session creation
bnx2i allocates a host per session and iser accesses the device so we need to pass them a the leading connection so they can find the hardware that is it bound to. This also has us call ep_disconnect before calling the stop conn callout, so these driver do not have to worry about stopping the receiving path.
Diffstat (limited to 'include')
-rw-r--r--include/iscsi_if.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/iscsi_if.h b/include/iscsi_if.h
index 6548560..e71b88a 100644
--- a/include/iscsi_if.h
+++ b/include/iscsi_if.h
@@ -50,6 +50,7 @@ enum iscsi_uevent_e {
ISCSI_UEVENT_TGT_DSCVR = UEVENT_BASE + 15,
ISCSI_UEVENT_SET_HOST_PARAM = UEVENT_BASE + 16,
ISCSI_UEVENT_UNBIND_SESSION = UEVENT_BASE + 17,
+ ISCSI_UEVENT_CREATE_BOUND_SESSION = UEVENT_BASE + 18,
/* up events */
ISCSI_KEVENT_RECV_PDU = KEVENT_BASE + 1,
@@ -78,6 +79,12 @@ struct iscsi_uevent {
uint16_t cmds_max;
uint16_t queue_depth;
} c_session;
+ struct msg_create_bound_session {
+ uint64_t ep_handle;
+ uint32_t initial_cmdsn;
+ uint16_t cmds_max;
+ uint16_t queue_depth;
+ } c_bound_session;
struct msg_destroy_session {
uint32_t sid;
} d_session;