diff --git a/lib/iscsi/iscsi.c b/lib/iscsi/iscsi.c index 2a6fbdb6b..93e4b6c3b 100644 --- a/lib/iscsi/iscsi.c +++ b/lib/iscsi/iscsi.c @@ -511,7 +511,7 @@ spdk_iscsi_read_pdu(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu **_pdu) * FirstBurstLength as our maximum data segment length * value. */ - max_segment_len = DEFAULT_FIRSTBURSTLENGTH; + max_segment_len = SPDK_ISCSI_FIRST_BURST_LENGTH; } else if (pdu->bhs.opcode == ISCSI_OP_SCSI_DATAOUT) { max_segment_len = spdk_get_data_out_buffer_size(); } else if (pdu->bhs.opcode == ISCSI_OP_NOPOUT) { diff --git a/lib/iscsi/iscsi.h b/lib/iscsi/iscsi.h index 6734f5b18..b9115986b 100644 --- a/lib/iscsi/iscsi.h +++ b/lib/iscsi/iscsi.h @@ -67,7 +67,6 @@ #define DEFAULT_MAXOUTSTANDINGR2T 1 #define DEFAULT_DEFAULTTIME2WAIT 2 #define DEFAULT_DEFAULTTIME2RETAIN 20 -#define DEFAULT_FIRSTBURSTLENGTH 8192 #define DEFAULT_INITIALR2T true #define DEFAULT_IMMEDIATEDATA true #define DEFAULT_DATAPDUINORDER true diff --git a/lib/iscsi/iscsi_subsystem.c b/lib/iscsi/iscsi_subsystem.c index 85c16518e..01d68b34e 100644 --- a/lib/iscsi/iscsi_subsystem.c +++ b/lib/iscsi/iscsi_subsystem.c @@ -386,7 +386,7 @@ spdk_iscsi_opts_init(struct spdk_iscsi_opts *opts) opts->MaxQueueDepth = DEFAULT_MAX_QUEUE_DEPTH; opts->DefaultTime2Wait = DEFAULT_DEFAULTTIME2WAIT; opts->DefaultTime2Retain = DEFAULT_DEFAULTTIME2RETAIN; - opts->FirstBurstLength = DEFAULT_FIRSTBURSTLENGTH; + opts->FirstBurstLength = SPDK_ISCSI_FIRST_BURST_LENGTH; opts->ImmediateData = DEFAULT_IMMEDIATEDATA; opts->AllowDuplicateIsid = false; opts->ErrorRecoveryLevel = DEFAULT_ERRORRECOVERYLEVEL;