From a85057ea07862d9db48299b2890c630108723070 Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Mon, 19 Oct 2020 08:42:18 +0300 Subject: [PATCH] nvmf/tcp: Repack spdk_nvmf_tcp_req structure Signed-off-by: Alexey Marchuk Change-Id: I4ca230a8a5ad01bb72cece4ce4cf543db144fcce Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4759 Community-CI: Mellanox Build Bot Reviewed-by: Ziye Yang Reviewed-by: Shuhei Matsumoto Reviewed-by: Ben Walker Tested-by: SPDK CI Jenkins --- lib/nvmf/tcp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/nvmf/tcp.c b/lib/nvmf/tcp.c index 0712cb2565..60dcd0d315 100644 --- a/lib/nvmf/tcp.c +++ b/lib/nvmf/tcp.c @@ -175,6 +175,8 @@ struct spdk_nvmf_tcp_req { * not the incoming PDU! */ struct nvme_tcp_pdu *pdu; + /* In-capsule data buffer */ + uint8_t *buf; /* * The PDU for a request may be used multiple times in serial over * the request's lifetime. For example, first to send an R2T, then @@ -182,10 +184,6 @@ struct spdk_nvmf_tcp_req { * twice at the same time, add a debug flag here for init/fini. */ bool pdu_in_use; - - /* In-capsule data buffer */ - uint8_t *buf; - bool has_incapsule_data; /* transfer_tag */