From fd98a83ce78eadb5ae5a388cff5b40dbf440c3ad Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Fri, 4 Oct 2019 14:21:45 +0800 Subject: [PATCH] nvmf/tcp: re-organize spdk_nvmf_tcp_req Run the following command: pahole ./app/nvmf_tgt/nvmf_tgt -R -C spdk_nvmf_tcp_req It tells me change the bool definition location of dif_insert_or_strip. Change-Id: Ia43ab62bcc223a07e6415b2c769fe4af2b097f18 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/470401 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu --- lib/nvmf/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nvmf/tcp.c b/lib/nvmf/tcp.c index 82746d8f5..9feea9f3c 100644 --- a/lib/nvmf/tcp.c +++ b/lib/nvmf/tcp.c @@ -171,6 +171,8 @@ struct spdk_nvmf_tcp_req { bool has_incapsule_data; + bool dif_insert_or_strip; + /* transfer_tag */ uint16_t ttag; @@ -189,7 +191,6 @@ struct spdk_nvmf_tcp_req { uint32_t c2h_data_pdu_num; struct spdk_dif_ctx dif_ctx; - bool dif_insert_or_strip; uint32_t elba_length; uint32_t orig_length;