Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2015 01:12:17 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r291228 - projects/cxl_iscsi/sys/dev/iscsi
Message-ID:  <201511240112.tAO1CHRn091594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511240112.tAO1CHRn091594>