svn commit: r291228 - projects/cxl_iscsi/sys/dev/iscsi

Navdeep Parhar np at FreeBSD.org
Tue Nov 24 01:12:19 UTC 2015


Author: np
Date: Tue Nov 24 01:12:17 2015
New Revision: 291228
URL: https://svnweb.freebsd.org/changeset/base/291228

Log:
  Do not generate PDUs with payload greater than max_data_segment_length.
  
  It is perhaps preferable to have a separate limit for send instead of
  reusing the receive limit.  I'll discuss with trasz@ and mav@ before
  pulling this into head.

Modified:
  projects/cxl_iscsi/sys/dev/iscsi/iscsi.c

Modified: projects/cxl_iscsi/sys/dev/iscsi/iscsi.c
==============================================================================
--- projects/cxl_iscsi/sys/dev/iscsi/iscsi.c	Tue Nov 24 01:07:57 2015	(r291227)
+++ projects/cxl_iscsi/sys/dev/iscsi/iscsi.c	Tue Nov 24 01:12:17 2015	(r291228)
@@ -1371,7 +1371,8 @@ iscsi_ioctl_daemon_handoff(struct iscsi_
 	is->is_statsn = handoff->idh_statsn;
 	is->is_initial_r2t = handoff->idh_initial_r2t;
 	is->is_immediate_data = handoff->idh_immediate_data;
-	is->is_max_data_segment_length = handoff->idh_max_data_segment_length;
+	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;
 	is->is_first_burst_length = handoff->idh_first_burst_length;
 


More information about the svn-src-projects mailing list