Negotiate InitialR2T during login. Default to offer No, but update

and accept what Target responds.

Store the result of the negotiated setting in the iscsi context
so we can use it later to determine how to send solicited/unsolicited
data.
This commit is contained in:
Ronnie Sahlberg
2011-01-02 12:50:00 +11:00
parent 190ea92810
commit 32228a4509
3 changed files with 23 additions and 3 deletions

View File

@@ -60,9 +60,11 @@ iscsi_create_context(const char *initiator_name)
iscsi->next_phase = ISCSI_PDU_LOGIN_NSG_OPNEG;
iscsi->secneg_phase = ISCSI_LOGIN_SECNEG_PHASE_OFFER_CHAP;
iscsi->max_burst_length = 262144;
iscsi->first_burst_length = 262144;
iscsi->max_burst_length = 262144;
iscsi->first_burst_length = 262144;
iscsi->max_recv_data_segment_length = 262144;
iscsi->want_initial_r2t = ISCSI_INITIAL_R2T_NO;
iscsi->use_initial_r2t = ISCSI_INITIAL_R2T_NO;
return iscsi;
}