Thread (37 messages) 37 messages, 6 authors, 2018-11-21

Re: [PATCH nvme-cli v2 15/14] nvme: Add TCP transport

From: Sagi Grimberg <sagi@grimberg.me>
Date: 2018-11-20 22:56:44
Also in: linux-block, linux-nvme

quoted
@@ -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...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help