nvme/tcp: Align local variables types
Some of variables have types which don't match their usage in code Change-Id: Ic2bd5fd6561c70143dde436ce9cddc0be4d3b0d0 Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/521 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
8c1859067f
commit
33204a4354
@ -206,7 +206,7 @@ nvme_tcp_free_reqs(struct nvme_tcp_qpair *tqpair)
|
|||||||
static int
|
static int
|
||||||
nvme_tcp_alloc_reqs(struct nvme_tcp_qpair *tqpair)
|
nvme_tcp_alloc_reqs(struct nvme_tcp_qpair *tqpair)
|
||||||
{
|
{
|
||||||
int i;
|
uint16_t i;
|
||||||
struct nvme_tcp_req *tcp_req;
|
struct nvme_tcp_req *tcp_req;
|
||||||
|
|
||||||
tqpair->tcp_reqs = calloc(tqpair->num_entries, sizeof(struct nvme_tcp_req));
|
tqpair->tcp_reqs = calloc(tqpair->num_entries, sizeof(struct nvme_tcp_req));
|
||||||
@ -378,9 +378,8 @@ nvme_tcp_build_contig_request(struct nvme_tcp_qpair *tqpair, struct nvme_tcp_req
|
|||||||
static int
|
static int
|
||||||
nvme_tcp_build_sgl_request(struct nvme_tcp_qpair *tqpair, struct nvme_tcp_req *tcp_req)
|
nvme_tcp_build_sgl_request(struct nvme_tcp_qpair *tqpair, struct nvme_tcp_req *tcp_req)
|
||||||
{
|
{
|
||||||
int rc, iovcnt;
|
int rc;
|
||||||
uint32_t length;
|
uint32_t length, remaining_size, iovcnt = 0;
|
||||||
uint64_t remaining_size;
|
|
||||||
struct nvme_request *req = tcp_req->req;
|
struct nvme_request *req = tcp_req->req;
|
||||||
|
|
||||||
SPDK_DEBUGLOG(SPDK_LOG_NVME, "enter\n");
|
SPDK_DEBUGLOG(SPDK_LOG_NVME, "enter\n");
|
||||||
@ -392,7 +391,6 @@ nvme_tcp_build_sgl_request(struct nvme_tcp_qpair *tqpair, struct nvme_tcp_req *t
|
|||||||
req->payload.reset_sgl_fn(req->payload.contig_or_cb_arg, req->payload_offset);
|
req->payload.reset_sgl_fn(req->payload.contig_or_cb_arg, req->payload_offset);
|
||||||
|
|
||||||
remaining_size = req->payload_size;
|
remaining_size = req->payload_size;
|
||||||
iovcnt = 0;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
rc = req->payload.next_sge_fn(req->payload.contig_or_cb_arg, &tcp_req->iov[iovcnt].iov_base,
|
rc = req->payload.next_sge_fn(req->payload.contig_or_cb_arg, &tcp_req->iov[iovcnt].iov_base,
|
||||||
|
Loading…
Reference in New Issue
Block a user