summaryrefslogtreecommitdiff
path: root/usr/transport.c
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2009-08-24 22:05:39 -0500
committerMike Christie <michaelc@cs.wisc.edu>2009-08-24 22:05:39 -0500
commit45fa374937ec1bc8af41557a3ed92e2bc2771476 (patch)
treedcd9ed82e3d1125049638c507b0d9688bb60f11b /usr/transport.c
parentf10c7942ad0dd26388eed0b46c44bad429fce0ad (diff)
downloadopen-iscsi-45fa374937ec1bc8af41557a3ed92e2bc2771476.tar.gz
iscsid: add flag to indicate if driver needs iscsid to set ip
We were deciding if we need to set net params based on if the iface ipaddress is set. This instead adds a flag, so we can warn users about not setting the ip address properly when needed. This also fixes a bug in iscsid session sync up where we were reading in the ip address and then it got used for binding, when it was not requested. The binding would fail because we do not support software binding by ip and the iscsid restart up would fail.
Diffstat (limited to 'usr/transport.c')
-rw-r--r--usr/transport.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/transport.c b/usr/transport.c
index 76e7aef..adc363e 100644
--- a/usr/transport.c
+++ b/usr/transport.c
@@ -44,6 +44,7 @@ struct iscsi_transport_template iscsi_iser = {
struct iscsi_transport_template cxgb3i = {
.name = "cxgb3i",
+ .set_host_ip = 1,
.ep_connect = ktransport_ep_connect,
.ep_poll = ktransport_ep_poll,
.ep_disconnect = ktransport_ep_disconnect,
@@ -52,6 +53,7 @@ struct iscsi_transport_template cxgb3i = {
struct iscsi_transport_template bnx2i = {
.name = "bnx2i",
+ .set_host_ip = 1,
.ep_connect = ktransport_ep_connect,
.ep_poll = ktransport_ep_poll,
.ep_disconnect = ktransport_ep_disconnect,