[Pkg-iscsi-maintainers] [open-iscsi] 42/48: be2iscsi: Fix MaxXmitDataLenght of the driver.

Ritesh Raj Sarraf rrs at moszumanska.debian.org
Wed Aug 20 13:54:14 UTC 2014

This is an automated email from the git hooks/post-receive script.

rrs pushed a commit to branch upstream-mnc
in repository open-iscsi.

commit 5f28b8b73fbdb8c1e7fbe4a0e40dd2857b74b685
Author: John Soni Jose <sony.john-n at emulex.com>
Date:   Fri Mar 21 11:51:09 2014 +0530

    be2iscsi: Fix MaxXmitDataLenght of the driver.
     Issue :
     During login negotiation if the MaxRecvDataSegmenLen given by the
     target is 0, then MRDSL default value of 8K should be considered.
     Some old targets close the CXN if the PDU received size is greater
     than the MaxRecvDataSegmentLen set during negotiation.
     Fix :
     When target is not sending MaxRecvDataSegmentLen in the negotiated
     params the value is 0. be2iscsi was setting max_xmit_dlength to 64k
     in this case. This fix sets the MaxRecvDataSegmentLen=8k if during
     negotiation the MaxRecvDataSegmentLen=0
    Signed-off-by: John Soni Jose <sony.john-n at emulex.com>
    Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal at emulex.com>
 usr/be2iscsi.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/usr/be2iscsi.c b/usr/be2iscsi.c
index ce8b719..ba4c29f 100644
--- a/usr/be2iscsi.c
+++ b/usr/be2iscsi.c
@@ -33,10 +33,6 @@ void be2iscsi_create_conn(struct iscsi_conn *conn)
 	if (conn->max_xmit_dlength > 65536)
 		conn->max_xmit_dlength = 65536;
-	if (!conn_rec->iscsi.MaxXmitDataSegmentLength ||
-	    conn_rec->iscsi.MaxXmitDataSegmentLength > 65536)
-		conn_rec->iscsi.MaxXmitDataSegmentLength = 65536;
 	session->erl = 0;
 	session->initial_r2t_en = 1;

Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-iscsi/open-iscsi.git

More information about the Pkg-iscsi-maintainers mailing list