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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




@@ -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...



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux