aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-13 09:41:15 +0100
committerChristoph Hellwig <hch@lst.de>2018-12-18 17:50:45 +0100
commitf4d10b5c85b5f118c6e55288afd053f5c8c5fc98 (patch)
tree2dfd4e7e9a4ac2143e4e49ed0167473626691dce /drivers/nvme/target
parentnvme-pci: refactor nvme_poll_irqdisable to make sparse happy (diff)
downloadlinux-dev-f4d10b5c85b5f118c6e55288afd053f5c8c5fc98.tar.xz
linux-dev-f4d10b5c85b5f118c6e55288afd053f5c8c5fc98.zip
nvmet-tcp: fix endianess annotations
Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r--drivers/nvme/target/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/tcp.c b/drivers/nvme/target/tcp.c
index d31bec260160..44b37b202e39 100644
--- a/drivers/nvme/target/tcp.c
+++ b/drivers/nvme/target/tcp.c
@@ -758,7 +758,7 @@ static int nvmet_tcp_handle_icreq(struct nvmet_tcp_queue *queue)
if (icreq->maxr2t != 0) {
pr_err("queue %d: unsupported maxr2t %d\n", queue->idx,
- le16_to_cpu(icreq->maxr2t) + 1);
+ le32_to_cpu(icreq->maxr2t) + 1);
return -EPROTO;
}
@@ -776,7 +776,7 @@ static int nvmet_tcp_handle_icreq(struct nvmet_tcp_queue *queue)
icresp->hdr.pdo = 0;
icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen);
icresp->pfv = cpu_to_le16(NVME_TCP_PFV_1_0);
- icresp->maxdata = 0xffff; /* FIXME: support r2t */
+ icresp->maxdata = cpu_to_le32(0xffff); /* FIXME: support r2t */
icresp->cpda = 0;
if (queue->hdr_digest)
icresp->digest |= NVME_TCP_HDR_DIGEST_ENABLE;