Skip to contentSkip to conversation

be2iscsi: Maintain same ITT across login

PATCH In review Jayamohan Kallickal 1 participant 1 message Jun 30, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/12 be2iscsi: Maintain same ITT across login

This patch ensures that the same ITT is maintained across
all login pdu's

---
 drivers/scsi/be2iscsi/be_iscsi.c |    4 +++
 drivers/scsi/be2iscsi/be_main.c  |   41 +++++++++++++++++++++++++++++++++----
 drivers/scsi/be2iscsi/be_main.h  |    1 +
 3 files changed, 41 insertions(+), 5 deletions(-)
drivers/scsi/be2iscsi/be_iscsi.c +4 -0
index d9321ee..49e3718 100644
@@ -277,6 +277,10 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
 		if (session->max_burst > 262144)
 			session->max_burst = 262144;
 		break;
+	case ISCSI_PARAM_MAX_XMIT_DLENGTH:
+		if ((conn->max_xmit_dlength > 65536) ||
+		    (conn->max_xmit_dlength == 0))
+			conn->max_xmit_dlength = 65536;
 	default:
 		return 0;
 	}
drivers/scsi/be2iscsi/be_main.c +36 -5

83 lines not on this page · raw message

drivers/scsi/be2iscsi/be_main.h +1 -0
index 05ad76e..08996d0 100644
@@ -359,6 +359,7 @@ struct beiscsi_conn {
 	u32 beiscsi_conn_cid;
 	struct beiscsi_endpoint *ep;
 	unsigned short login_in_progress;
+	struct wrb_handle *plogin_wrb_handle;
 	struct sgl_handle *plogin_sgl_handle;
 	struct beiscsi_session *beiscsi_sess;
 	struct iscsi_task *task;
Signature · 1 line
1.6.5.2