summaryrefslogtreecommitdiff
path: root/usr/initiator.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-05-20 17:06:29 -0500
committerMike Christie <michaelc@cs.wisc.edu>2009-05-20 17:06:29 -0500
commit6c5d6cd0e75e34eaad7ee1ce99d649a58c0a77f2 (patch)
tree47c457b931ba6f7cf11752e312015414c199c71a /usr/initiator.c
parentb282ce7f74411caec4abf2df9c188e23a8da3781 (diff)
downloadopen-iscsi-6c5d6cd0e75e34eaad7ee1ce99d649a58c0a77f2.tar.gz
iscsid: add per transport init callback
cxgb3i can only support 15360 or smaller. This patch adds a callback to the transport so that drivers can override the default settings or do any other setup they may need to do before we try to login.
Diffstat (limited to 'usr/initiator.c')
-rw-r--r--usr/initiator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/initiator.c b/usr/initiator.c
index 4a56347..309a431 100644
--- a/usr/initiator.c
+++ b/usr/initiator.c
@@ -1922,6 +1922,9 @@ static void session_conn_poll(void *data)
}
iscsi_copy_operational_params(conn);
+
+ if (session->t->template->create_conn)
+ session->t->template->create_conn(conn);
/*
* TODO: use the iface number or some other value
* so this will be persistent