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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user