From owner-svn-src-projects@freebsd.org Tue Dec 22 20:03:50 2015 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77C16A4E290 for ; Tue, 22 Dec 2015 20:03:50 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B5351BEE; Tue, 22 Dec 2015 20:03:50 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tBMK3n4X035879; Tue, 22 Dec 2015 20:03:49 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tBMK3n7R035878; Tue, 22 Dec 2015 20:03:49 GMT (envelope-from np@FreeBSD.org) Message-Id: <201512222003.tBMK3n7R035878@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Tue, 22 Dec 2015 20:03:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r292618 - projects/cxl_iscsi/sys/dev/iscsi X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 20:03:50 -0000 Author: np Date: Tue Dec 22 20:03:49 2015 New Revision: 292618 URL: https://svnweb.freebsd.org/changeset/base/292618 Log: Add comment to go with r291228. Submitted by: trasz@ 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 Dec 22 19:41:40 2015 (r292617) +++ projects/cxl_iscsi/sys/dev/iscsi/iscsi.c Tue Dec 22 20:03:49 2015 (r292618) @@ -1371,6 +1371,11 @@ 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; + + /* + * 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;