summaryrefslogtreecommitdiff
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2015-12-22 20:03:49 +0000
committerNavdeep Parhar <np@FreeBSD.org>2015-12-22 20:03:49 +0000
commitc8b73c2cc7dbfbda71794c04fc2a9ca898c2c060 (patch)
tree0047988e57b0a65ada5c5ca3aefb568138f237a9 /sys/dev/iscsi
parent6c43c26fe0c128dfafbb1b2207912494493d2dd7 (diff)
Notes
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/iscsi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c
index b3b40f11a186..9cb199d8e4cd 100644
--- a/sys/dev/iscsi/iscsi.c
+++ b/sys/dev/iscsi/iscsi.c
@@ -1371,6 +1371,11 @@ iscsi_ioctl_daemon_handoff(struct iscsi_softc *sc,
is->is_statsn = handoff->idh_statsn;
is->is_initial_r2t = handoff->idh_initial_r2t;
is->is_immediate_data = handoff->idh_immediate_data;
+
+ /*
+ * Cap MaxRecvDataSegmentLength obtained from the target to the maximum
+ * size supported by our ICL module.
+ */
is->is_max_data_segment_length = min(ic->ic_max_data_segment_length,
handoff->idh_max_data_segment_length);
is->is_max_burst_length = handoff->idh_max_burst_length;