From d0efddd2816435ea8b376f08f486fa9491a9ebff Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Thu, 14 Feb 2019 18:37:35 +0900 Subject: [PATCH] iscsi: Move macro constant DEFAULT_MAX_QUEUE_DEPTH to the appropriate location This macro constant is not related with data size and should be moved to the separate location. Change-Id: I73b337f5750c39d1f87591c2e372664019e50b95 Signed-off-by: Shuhei Matsumoto Reviewed-on: https://review.gerrithub.io/c/444545 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Darek Stojaczyk --- lib/iscsi/iscsi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/iscsi/iscsi.h b/lib/iscsi/iscsi.h index 9871542f9..f56cf6c4a 100644 --- a/lib/iscsi/iscsi.h +++ b/lib/iscsi/iscsi.h @@ -101,12 +101,6 @@ */ #define MAX_LARGE_DATAIN_PER_CONNECTION 64 -/* - * Defines default maximum queue depth per connection and this can be - * changed by configuration file. - */ -#define DEFAULT_MAX_QUEUE_DEPTH 64 - #define SPDK_ISCSI_MAX_BURST_LENGTH \ (SPDK_ISCSI_MAX_RECV_DATA_SEGMENT_LENGTH * MAX_DATA_OUT_PER_CONNECTION) @@ -126,6 +120,12 @@ #define SPDK_ISCSI_MAX_FIRST_BURST_LENGTH 16777215 +/* + * Defines default maximum queue depth per connection and this can be + * changed by configuration file. + */ +#define DEFAULT_MAX_QUEUE_DEPTH 64 + /** Defines how long we should wait for a TCP close after responding to a * logout request, before terminating the connection ourselves. */