nvmf: set default KAS value to 10 seconds
Both initiator and target are using the minium 10 seconds timeout value, so set it in kas field when initializing the controller. Change-Id: Idda68bdfe27613ebaf706a0de497145d3f9ed766 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/441995 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
44c6faac9a
commit
faacc87811
@ -49,8 +49,8 @@
|
||||
|
||||
#define MIN_KEEP_ALIVE_TIMEOUT_IN_MS 10000
|
||||
#define NVMF_DISC_KATO_IN_MS 120000
|
||||
#define KAS_DEFAULT_VALUE 10
|
||||
#define KAS_TIME_UNIT_IN_MS 100
|
||||
#define KAS_DEFAULT_VALUE (MIN_KEEP_ALIVE_TIMEOUT_IN_MS / KAS_TIME_UNIT_IN_MS)
|
||||
|
||||
#define MODEL_NUMBER "SPDK bdev Controller"
|
||||
|
||||
@ -281,7 +281,6 @@ spdk_nvmf_ctrlr_create(struct spdk_nvmf_subsystem *subsystem,
|
||||
}
|
||||
|
||||
/*
|
||||
* Because Identify Controller data KAS default is 10
|
||||
* KAS: this field indicates the granularity of the Keep Alive Timer in 100ms units
|
||||
* keep-alive timeout in milliseconds
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user