From 7a39a68c4fea6bba98c1878e2d8692b745e7c605 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Wed, 28 Nov 2018 21:45:40 +0800 Subject: [PATCH] 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: Ziye Yang Reviewed-on: https://review.gerrithub.io/435209 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris --- lib/nvme/nvme_tcp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/nvme/nvme_tcp.c b/lib/nvme/nvme_tcp.c index ba91c6efa..e636c238e 100644 --- a/lib/nvme/nvme_tcp.c +++ b/lib/nvme/nvme_tcp.c @@ -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);