From owner-svn-src-head@FreeBSD.ORG Tue Mar 25 19:28:41 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5A5818C2; Tue, 25 Mar 2014 19:28:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 47600A55; Tue, 25 Mar 2014 19:28:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2PJSfvp051648; Tue, 25 Mar 2014 19:28:41 GMT (envelope-from trasz@svn.freebsd.org) Received: (from trasz@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2PJSfui051647; Tue, 25 Mar 2014 19:28:41 GMT (envelope-from trasz@svn.freebsd.org) Message-Id: <201403251928.s2PJSfui051647@svn.freebsd.org> From: Edward Tomasz Napierala Date: Tue, 25 Mar 2014 19:28:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263745 - head/sys/cam/ctl X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Mar 2014 19:28:41 -0000 Author: trasz Date: Tue Mar 25 19:28:40 2014 New Revision: 263745 URL: http://svnweb.freebsd.org/changeset/base/263745 Log: Target Transfer Tag is opaque; no need to htonl(3) it. Sponsored by: The FreeBSD Foundation Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c ============================================================================== --- head/sys/cam/ctl/ctl_frontend_iscsi.c Tue Mar 25 19:20:34 2014 (r263744) +++ head/sys/cam/ctl/ctl_frontend_iscsi.c Tue Mar 25 19:28:40 2014 (r263745) @@ -2500,7 +2500,7 @@ cfiscsi_datamove_out(union ctl_io *io) return; } cdw->cdw_ctl_io = io; - cdw->cdw_target_transfer_tag = htonl(target_transfer_tag); + cdw->cdw_target_transfer_tag = target_transfer_tag; cdw->cdw_initiator_task_tag = bhssc->bhssc_initiator_task_tag; if (cs->cs_immediate_data && icl_pdu_data_segment_length(request) > 0) { @@ -2540,7 +2540,7 @@ cfiscsi_datamove_out(union ctl_io *io) bhsr2t->bhsr2t_flags = 0x80; bhsr2t->bhsr2t_lun = bhssc->bhssc_lun; bhsr2t->bhsr2t_initiator_task_tag = bhssc->bhssc_initiator_task_tag; - bhsr2t->bhsr2t_target_transfer_tag = htonl(target_transfer_tag); + bhsr2t->bhsr2t_target_transfer_tag = target_transfer_tag; /* * XXX: Here we assume that cfiscsi_datamove() won't ever * be running concurrently on several CPUs for a given