nvme: Don't alias sgl1 when building request
This makes this particular function consistent with all of the other functions in this file, and I feel it is slightly more readable. Change-Id: I99ace5b9eb45b0f706ca85a64b155444f45c9815 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/428730 Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
6b2fb186f6
commit
e3cd058cb4
@ -830,7 +830,6 @@ static int
|
||||
nvme_rdma_build_null_request(struct spdk_nvme_rdma_req *rdma_req)
|
||||
{
|
||||
struct nvme_request *req = rdma_req->req;
|
||||
struct spdk_nvme_sgl_descriptor *nvme_sgl;
|
||||
|
||||
req->cmd.psdt = SPDK_NVME_PSDT_SGL_MPTR_CONTIG;
|
||||
|
||||
@ -843,12 +842,11 @@ nvme_rdma_build_null_request(struct spdk_nvme_rdma_req *rdma_req)
|
||||
/* The RDMA SGL needs one element describing the NVMe command. */
|
||||
rdma_req->send_wr.num_sge = 1;
|
||||
|
||||
nvme_sgl = &req->cmd.dptr.sgl1;
|
||||
nvme_sgl->keyed.type = SPDK_NVME_SGL_TYPE_KEYED_DATA_BLOCK;
|
||||
nvme_sgl->keyed.subtype = SPDK_NVME_SGL_SUBTYPE_ADDRESS;
|
||||
nvme_sgl->keyed.length = 0;
|
||||
nvme_sgl->keyed.key = 0;
|
||||
nvme_sgl->address = 0;
|
||||
req->cmd.dptr.sgl1.keyed.type = SPDK_NVME_SGL_TYPE_KEYED_DATA_BLOCK;
|
||||
req->cmd.dptr.sgl1.keyed.subtype = SPDK_NVME_SGL_SUBTYPE_ADDRESS;
|
||||
req->cmd.dptr.sgl1.keyed.length = 0;
|
||||
req->cmd.dptr.sgl1.keyed.key = 0;
|
||||
req->cmd.dptr.sgl1.address = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user