Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 19:28:41 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263745 - head/sys/cam/ctl
Message-ID:  <201403251928.s2PJSfui051647@svn.freebsd.org>

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



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