Commit 7a39a68c authored by Ziye Yang's avatar Ziye Yang Committed by Jim Harris
Browse files

nvme/tcp: disable the digest by default.



This patch disables the header digest and data digest
by default, which will improve the performance.

In the another patch, we will make it configurable.

Change-Id: Icdf8cda28217ec35a6b87bb932cdb1e4f8492471
Signed-off-by: default avatarZiye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/435209


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 03370d05
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1596,9 +1596,8 @@ nvme_tcp_qpair_icreq_send(struct nvme_tcp_qpair *tqpair)
	ic_req->maxr2t = NVME_TCP_MAX_R2T_DEFAULT - 1;
	ic_req->hpda = NVME_TCP_HPDA_DEFAULT;

	/* Currently, always enable it here for debuging */
	ic_req->dgst.bits.hdgst_enable = 1;
	ic_req->dgst.bits.ddgst_enable = 1;
	ic_req->dgst.bits.hdgst_enable = 0;
	ic_req->dgst.bits.ddgst_enable = 0;

	nvme_tcp_qpair_write_pdu(tqpair, pdu, nvme_tcp_send_icreq_complete, tqpair);