Commit dbf738a1 authored by Nicholas Bellinger's avatar Nicholas Bellinger

iscsi-target: Allow ->MaxXmitDataSegmentLength assignment for iser discovery

This patch changes iscsi_set_connection_parameters() to allow
conn_ops->MaxXmitDataSegmentLength assignement to occur during
in-band iser send-targets discovery, as this value is required
by TEXT response processing code.
Reported-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 889c8a68
...@@ -1799,9 +1799,6 @@ void iscsi_set_connection_parameters( ...@@ -1799,9 +1799,6 @@ void iscsi_set_connection_parameters(
* this key is not sent over the wire. * this key is not sent over the wire.
*/ */
if (!strcmp(param->name, MAXXMITDATASEGMENTLENGTH)) { if (!strcmp(param->name, MAXXMITDATASEGMENTLENGTH)) {
if (param_list->iser == true)
continue;
ops->MaxXmitDataSegmentLength = ops->MaxXmitDataSegmentLength =
simple_strtoul(param->value, &tmpptr, 0); simple_strtoul(param->value, &tmpptr, 0);
pr_debug("MaxXmitDataSegmentLength: %s\n", pr_debug("MaxXmitDataSegmentLength: %s\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment