3f3ec35
From 5f28b8b73fbdb8c1e7fbe4a0e40dd2857b74b685 Mon Sep 17 00:00:00 2001
3f3ec35
From: John Soni Jose <sony.john-n@emulex.com>
3f3ec35
Date: Fri, 21 Mar 2014 11:51:09 +0530
3f3ec35
Subject: [PATCH] be2iscsi: Fix MaxXmitDataLenght of the driver.
3f3ec35
3f3ec35
 Issue :
3f3ec35
 During login negotiation if the MaxRecvDataSegmenLen given by the
3f3ec35
 target is 0, then MRDSL default value of 8K should be considered.
3f3ec35
 Some old targets close the CXN if the PDU received size is greater
3f3ec35
 than the MaxRecvDataSegmentLen set during negotiation.
3f3ec35
3f3ec35
 Fix :
3f3ec35
 When target is not sending MaxRecvDataSegmentLen in the negotiated
3f3ec35
 params the value is 0. be2iscsi was setting max_xmit_dlength to 64k
3f3ec35
 in this case. This fix sets the MaxRecvDataSegmentLen=8k if during
3f3ec35
 negotiation the MaxRecvDataSegmentLen=0
3f3ec35
3f3ec35
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
3f3ec35
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
3f3ec35
---
3f3ec35
 usr/be2iscsi.c | 4 ----
3f3ec35
 1 file changed, 4 deletions(-)
3f3ec35
3f3ec35
diff --git a/usr/be2iscsi.c b/usr/be2iscsi.c
3f3ec35
index ce8b719..ba4c29f 100644
3f3ec35
--- a/usr/be2iscsi.c
3f3ec35
+++ b/usr/be2iscsi.c
3f3ec35
@@ -33,10 +33,6 @@ void be2iscsi_create_conn(struct iscsi_conn *conn)
3f3ec35
 	if (conn->max_xmit_dlength > 65536)
3f3ec35
 		conn->max_xmit_dlength = 65536;
3f3ec35
 
3f3ec35
-	if (!conn_rec->iscsi.MaxXmitDataSegmentLength ||
3f3ec35
-	    conn_rec->iscsi.MaxXmitDataSegmentLength > 65536)
3f3ec35
-		conn_rec->iscsi.MaxXmitDataSegmentLength = 65536;
3f3ec35
-
3f3ec35
 	session->erl = 0;
3f3ec35
 	session->initial_r2t_en = 1;
3f3ec35
 }
3f3ec35
-- 
3f3ec35
1.9.3
3f3ec35