From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
To: linux-nvme@lists.infradead.org
Cc: kbusch@kernel.org, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Subject: [PATCH nvme-cli] nvme: allow addr family to recognize loop
Date: Tue, 21 Apr 2020 14:12:54 -0700 [thread overview]
Message-ID: <20200421211254.17417-1-chaitanya.kulkarni@wdc.com> (raw)
This adds ability to decode discovery log page address family
when NVMeOF configured as loop.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
---
fabrics.c | 1 +
linux/nvme.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/fabrics.c b/fabrics.c
index e2c9bfb..5f8b951 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -136,6 +136,7 @@ static const char * const adrfams[] = {
[NVMF_ADDR_FAMILY_IP6] = "ipv6",
[NVMF_ADDR_FAMILY_IB] = "infiniband",
[NVMF_ADDR_FAMILY_FC] = "fibre-channel",
+ [NVMF_ADDR_FAMILY_LOOP] = "loop",
};
static inline const char *adrfam_str(__u8 adrfam)
diff --git a/linux/nvme.h b/linux/nvme.h
index 640b966..f2c4fdb 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -85,6 +85,8 @@ enum {
NVMF_ADDR_FAMILY_IP6 = 2, /* IP6 */
NVMF_ADDR_FAMILY_IB = 3, /* InfiniBand */
NVMF_ADDR_FAMILY_FC = 4, /* Fibre Channel */
+ NVMF_ADDR_FAMILY_LOOP = 254, /* Reserved for host usage */
+ NVMF_ADDR_FAMILY_MAX,
};
/* Transport Type codes for Discovery Log Page entry TRTYPE field */
--
2.22.1
_______________________________________________
linux-nvme mailing list
linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
next reply other threads:[~2020-04-21 21:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 21:12 Chaitanya Kulkarni [this message]
2020-04-23 6:29 ` [PATCH nvme-cli] nvme: allow addr family to recognize loop Sagi Grimberg
2020-06-11 20:57 ` Keith Busch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200421211254.17417-1-chaitanya.kulkarni@wdc.com \
--to=chaitanya.kulkarni@wdc.com \
--cc=kbusch@kernel.org \
--cc=linux-nvme@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).