nvmet-tcp: don't fail maxr2t greater than 1
authorSagi Grimberg <sagi@grimberg.me>
Wed, 24 Apr 2019 18:53:16 +0000 (11:53 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Apr 2019 14:51:19 +0000 (16:51 +0200)
The host may support it, but nothing prevents us from
sending a single r2t at a time like we do anyways.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c

index 17cf137..69b83fa 100644 (file)
@@ -774,12 +774,6 @@ static int nvmet_tcp_handle_icreq(struct nvmet_tcp_queue *queue)
                return -EPROTO;
        }
 
-       if (icreq->maxr2t != 0) {
-               pr_err("queue %d: unsupported maxr2t %d\n", queue->idx,
-                       le32_to_cpu(icreq->maxr2t) + 1);
-               return -EPROTO;
-       }
-
        queue->hdr_digest = !!(icreq->digest & NVME_TCP_HDR_DIGEST_ENABLE);
        queue->data_digest = !!(icreq->digest & NVME_TCP_DATA_DIGEST_ENABLE);
        if (queue->hdr_digest || queue->data_digest) {