OpenCloudOS-Kernel/drivers/nvme/target
Chaitanya Kulkarni ab5d0b38c0 nvmet: add Command Set Identifier support
NVMe TP 4056 allows controllers to support different command sets.
NVMeoF target currently only supports namespaces that contain
traditional logical blocks that may be randomly read and written. In
some applications there is a value in exposing namespaces that contain
logical blocks that have special access rules (e.g. sequentially write
required namespace such as Zoned Namespace (ZNS)).

In order to support the Zoned Block Devices (ZBD) backend, controllers
need to have support for ZNS Command Set Identifier (CSI).

In this preparation patch, we adjust the code such that it can now
support the default command set identifier. We update the namespace data
structure to store the CSI value which defaults to NVME_CSI_NVM
that represents traditional logical blocks namespace type.

The CSI support is required to implement the ZBD backend for NVMeOF
with host side NVMe ZNS interface, since ZNS commands belong to
the different command set than the default one.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-06-17 15:51:20 +02:00
..
Kconfig nvmet: fix a spelling mistake "incuding" -> "including" in Kconfig 2020-12-01 20:36:37 +01:00
Makefile nvmet: add passthru code to process commands 2020-07-29 07:45:21 +02:00
admin-cmd.c nvmet: add Command Set Identifier support 2021-06-17 15:51:20 +02:00
configfs.c nvmet: make ver stable once connection established 2021-06-17 15:51:19 +02:00
core.c nvmet: add Command Set Identifier support 2021-06-17 15:51:20 +02:00
discovery.c nvmet: allow mn change if subsys not discovered 2021-06-17 15:51:19 +02:00
fabrics-cmd.c nvmet: demote fabrics cmd parse err msg to debug 2021-05-11 18:30:46 +02:00
fc.c nvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst() 2021-06-17 15:51:19 +02:00
fcloop.c nvme: constify static attribute_group structs 2021-02-02 10:26:10 +01:00
io-cmd-bdev.c nvmet: add nvmet_req_bio put helper for backends 2021-06-17 15:51:20 +02:00
io-cmd-file.c nvmet: use req->cmd directly in file-ns fast path 2021-06-17 15:51:20 +02:00
loop.c nvme-loop: fix memory leak in nvme_loop_create_ctrl() 2021-05-19 08:33:42 +02:00
nvmet.h nvmet: add Command Set Identifier support 2021-06-17 15:51:20 +02:00
passthru.c nvmet: add nvmet_req_bio put helper for backends 2021-06-17 15:51:20 +02:00
rdma.c nvmet-rdma: Fix NULL deref when SEND is completed with error 2021-05-11 18:30:45 +02:00
tcp.c for-5.13/drivers-2021-04-27 2021-04-28 14:39:37 -07:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00