[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0a9d643a-2fc2-9e41-384a-78e693a98500@grimberg.me>
Date: Tue, 20 Nov 2018 14:56:38 -0800
From: Sagi Grimberg <sagi@...mberg.me>
To: Arend van Spriel <arend.vanspriel@...adcom.com>,
linux-nvme@...ts.infradead.org
Cc: linux-block@...r.kernel.org, netdev@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Keith Busch <keith.busch@...el.com>,
Christoph Hellwig <hch@....de>
Subject: Re: [PATCH nvme-cli v2 15/14] nvme: Add TCP transport
>> @@ -703,11 +704,13 @@ retry:
>> /* we can safely ignore the rest of the entries */
>> break;
>> case NVMF_TRTYPE_RDMA:
>> + case NVMF_TRTYPE_TCP:
>> switch (e->adrfam) {
>> case NVMF_ADDR_FAMILY_IP4:
>> case NVMF_ADDR_FAMILY_IP6:
>> /* FALLTHRU */
>> - len = sprintf(p, ",transport=rdma");
>> + len = sprintf(p, ",transport=%s",
>> + e->trtype == NVMF_TRTYPE_RDMA ? "rdma" : "tcp");
>
> So why not just use the trtypes array above?
We can use that...
Powered by blists - more mailing lists