linux/drivers/nvme/target
Dongli Zhang ca8f4beebf nvme-fcloop: verify wwnn and wwpn format
The nvme host and target verify the wwnn and wwpn format via
nvme_fc_parse_traddr(). For instance, it is required that the length of
wwnn to be either 21 ("nn-0x") or 19 (nn-).

Add this verification to nvme-fcloop so that the input should always be in
hex and the length of input should always be 18.

Otherwise, the user may use e.g. 0x2 to create fcloop local port, while
0x0000000000000002 is required for nvme host and target. This makes the
requirement of format confusing.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2020-07-08 16:16:17 +02:00
..
admin-cmd.c nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
configfs.c nvmet: use unsigned type for u64 2020-07-08 16:16:17 +02:00
core.c nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
discovery.c nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
fabrics-cmd.c nvmet: add metadata/T10-PI support 2020-05-27 07:12:40 +02:00
fc.c nvmet-fc: slight cleanup for kbuild test warnings 2020-05-09 16:18:35 -06:00
fcloop.c nvme-fcloop: verify wwnn and wwpn format 2020-07-08 16:16:17 +02:00
io-cmd-bdev.c for-5.8/drivers-2020-06-01 2020-06-02 15:37:03 -07:00
io-cmd-file.c nvmet: rename nvmet_check_data_len to nvmet_check_transfer_len 2020-05-27 07:12:39 +02:00
Kconfig nvmet: add metadata characteristics for a namespace 2020-05-27 07:12:39 +02:00
loop.c nvmet-loop: remove unused 'target_ctrl' in nvme_loop_ctrl 2020-07-08 16:16:16 +02:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
nvmet.h nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
rdma.c nvmet: introduce flags member in nvmet_fabrics_ops 2020-07-08 16:16:17 +02:00
tcp.c nvmet-tcp: remove has_keyed_sgls initialization 2020-07-08 16:16:17 +02:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: add async event tracing support 2020-05-27 07:12:38 +02:00