Add fc transport support to nvmetcli
Subsystems (2)
PATCH 1/1 Add fc transport support to nvmetcli
From: James Smart <[email protected]>
Add fc.json file for example FC configuration. Small text update for FC in examples/documentation
Signed-off-by James Smart <james.smart at broadcom.com>
--- Documentation/nvmetcli.txt | 13 +++++++++++++ README | 6 ++++++ debian/nvmetcli.examples | 1 + examples/fc.json | 42 ++++++++++++++++++++++++++++++++++++++++++ fc.json | 42 ++++++++++++++++++++++++++++++++++++++++++ nvmetcli | 12 ++++++------ 6 files changed, 110 insertions(+), 6 deletions(-) create mode 100644 examples/fc.json create mode 100644 fc.json
Documentation/nvmetcli.txt +13 -0
@@ -198,6 +198,19 @@ IANA assigned default port for NVMe over Fabrics using RDMA: ...> create testnqn -------------- +* or create an FC port. traddr is the WWNN/WWPN of the FC port. +-------------- +...> cd /ports/ +...> create 3 +...> cd 3/ +...> set addr trtype=fc +...> set addr adrfam=fc +...> set addr traddr=nn-0x1000000044001123:pn-0x2000000055001123 +...> set addr trsvcid=none +...> cd subsystems/ +...> create testnqn +-------------- + * Saving the NVMe Target configuration: -------------- ./nvmetcli
README +6 -0
@@ -33,6 +33,12 @@ after you've ensured that the IP address in rdma.json fits your setup: ./nvmetcli restore rdma.json +Or to load the fc + no host authentication version do the following +after you've ensured that the port traddr FC address information in +fc.json fits your setup: + + ./nvmetcli restore fc.json + These files can also be edited directly using your favorite editor. Testing
debian/nvmetcli.examples +1 -0
@@ -1,2 +1,3 @@ loop.json rdma.json +fc.json
examples/fc.json new file +42 -0
42 lines not on this page · raw message
fc.json new file +42 -0
42 lines not on this page · raw message
nvmetcli +6 -6
@@ -341,11 +341,11 @@ class UIPortsNode(UINode): class UIPortNode(UINode): ui_desc_addr = { - 'adrfam': ('string', 'Address Family (e.g. ipv4)'), + 'adrfam': ('string', 'Address Family (e.g. ipv4 or fc)'), 'treq': ('string', 'Transport Security Requirements'), - 'traddr': ('string', 'Transport Address (e.g. IP Address)'), + 'traddr': ('string', 'Transport Address (e.g. IP Address or FC wwnn:wwpn)'), 'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'), - 'trtype': ('string', 'Transport Type (e.g. rdma or loop)'), + 'trtype': ('string', 'Transport Type (e.g. rdma or loop or fc)'), } def __init__(self, parent, cfnode):
@@ -455,11 +455,11 @@ class UIReferralsNode(UINode): class UIReferralNode(UINode): ui_desc_addr = { - 'adrfam': ('string', 'Address Family (e.g. ipv4)'), + 'adrfam': ('string', 'Address Family (e.g. ipv4 or fc)'), 'treq': ('string', 'Transport Security Requirements'), - 'traddr': ('string', 'Transport Address (e.g. IP Address)'), + 'traddr': ('string', 'Transport Address (e.g. IP Address or FC wwnn:wwpn)'), 'trsvcid': ('string', 'Transport Service ID (e.g. IP Port)'), - 'trtype': ('string', 'Transport Type (e.g. rdma or loop)'), + 'trtype': ('string', 'Transport Type (e.g. rdma or loop or fc)'), 'portid': ('number', 'Port identifier'), }
Signature · 1 line
2.9.3
Christoph Hellwig
AppliedPATCH 1/1 Add fc transport support to nvmetcli
Thanks,
applied.
Sagi Grimberg
maintainerPATCH 1/1 Add fc transport support to nvmetcli
In reply to [email protected]Reviewed-by Sagi Grimberg <sagi at grimberg.me>