c4d1b7d57a
Add a new state in the SPDK NVMe state machine in order to fetch I/O Command Set Specific Namespace data structures. Right now there is only support for the Zoned Namespace Command Set Specific Identify Namespace data structure. The NVM Command Set Specific Identify Namespace data structure is all zeroes right now, reserved for future use. The Key Value Command Set Identify Namespace data structure is not all zeroes, however, adding support for Key Value is outside the scope of this patch. The new NVME_CTRLR_STATE_IDENTIFY_NS_IOCS_SPECIFIC state is added after the NVME_CTRLR_STATE_IDENTIFY_ID_DESCS state. This is because we need to have fetched the identifiers in the desc list in order to know which command set a namespace belongs to. A slightly nicer design might have been to refactor the NVMe state machine to first fetch the id desc list, then the identify namespace struct, and finally the identify IOCS specific namespace struct. However, since this would have required a lot of changes, it didn't really seem justified. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I62cbc533c2c3eec1ccf0ba9b1c414d5a70919cff Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4368 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
app | ||
bdev | ||
blobfs | ||
blobstore | ||
common | ||
compress | ||
config_converter | ||
cpp_headers | ||
dd | ||
dpdk_memory_utility | ||
env | ||
event | ||
external_code | ||
ftl | ||
fuzz | ||
ioat | ||
iscsi_tgt | ||
json_config | ||
lvol | ||
make | ||
nvme | ||
nvmf | ||
ocf | ||
openstack | ||
pmem | ||
rpc | ||
rpc_client | ||
spdkcli | ||
unit | ||
vhost | ||
vmd | ||
Makefile | ||
spdk_cunit.h |