iscsi: Rename macro constant MAX_FIRSTBURSTLENGTH by SPDK_ISCSI_MAX_FIRST_BURST_LENGTH
Change-Id: If3e2ded87dab5c6596ec499460f7d233bf63154e Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-on: https://review.gerrithub.io/c/444536 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
d3526f523e
commit
80fd917004
@ -59,7 +59,6 @@
|
||||
#define MAX_INITIATOR 256
|
||||
#define MAX_NETMASK 256
|
||||
#define MAX_ISCSI_CONNECTIONS 1024
|
||||
#define MAX_FIRSTBURSTLENGTH 16777215
|
||||
|
||||
#define DEFAULT_PORT 3260
|
||||
#define DEFAULT_MAX_SESSIONS 128
|
||||
@ -125,6 +124,8 @@
|
||||
*/
|
||||
#define SPDK_ISCSI_MIN_FIRST_BURST_LENGTH 512
|
||||
|
||||
#define SPDK_ISCSI_MAX_FIRST_BURST_LENGTH 16777215
|
||||
|
||||
/** Defines how long we should wait for a TCP close after responding to a
|
||||
* logout request, before terminating the connection ourselves.
|
||||
*/
|
||||
|
@ -1055,7 +1055,7 @@ spdk_iscsi_negotiate_params(struct spdk_iscsi_conn *conn,
|
||||
} else {
|
||||
MaxBurstLength = SPDK_ISCSI_MAX_BURST_LENGTH;
|
||||
}
|
||||
if (FirstBurstLength < MAX_FIRSTBURSTLENGTH &&
|
||||
if (FirstBurstLength < SPDK_ISCSI_MAX_FIRST_BURST_LENGTH &&
|
||||
FirstBurstLength > MaxBurstLength) {
|
||||
FirstBurstLength = MaxBurstLength;
|
||||
snprintf(in_val, ISCSI_TEXT_MAX_VAL_LEN, "%d",
|
||||
|
Loading…
Reference in New Issue
Block a user