nvmet_fc: Change traddr field separator to a colon
authorJames Smart <jsmart2021@gmail.com>
Wed, 12 Apr 2017 22:15:18 +0000 (15:15 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 14:41:54 +0000 (16:41 +0200)
The FC-NVME spec revised syntax to avoid comma separators.
Sync with the change in the parser for traddr on port attachments.

Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/fc.c

index 4a44fd3485672814b3766218933638f8fd7e172b..074bd3743b5fcb6ccdd0bca8d67063611047c701 100644 (file)
@@ -2316,7 +2316,7 @@ nvmet_fc_parse_traddr(struct nvmet_fc_traddr *traddr, char *buf)
        if (!options)
                return -ENOMEM;
 
-       while ((p = strsep(&o, ",\n")) != NULL) {
+       while ((p = strsep(&o, ":\n")) != NULL) {
                if (!*p)
                        continue;