diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2021-11-22 23:38:31 +0100 |
---|---|---|
committer | Klaus Jensen <k.jensen@samsung.com> | 2022-02-14 08:58:29 +0100 |
commit | 25872031e14edf6a47bff1c015a026afe5c1c967 (patch) | |
tree | 727241082e2895a7a891dcc23a56cbceaa0be93d /hw/nvme | |
parent | 6190d92ff70c177e901a85fe0c2da44e34c606f9 (diff) |
hw/nvme: add ozcs enum
Add enumeration for OZCS values.
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/nvme')
-rw-r--r-- | hw/nvme/ns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/nvme/ns.c b/hw/nvme/ns.c index 8b5f98c761..356b6c1c2f 100644 --- a/hw/nvme/ns.c +++ b/hw/nvme/ns.c @@ -266,7 +266,8 @@ static void nvme_ns_init_zoned(NvmeNamespace *ns) id_ns_z->mar = cpu_to_le32(ns->params.max_active_zones - 1); id_ns_z->mor = cpu_to_le32(ns->params.max_open_zones - 1); id_ns_z->zoc = 0; - id_ns_z->ozcs = ns->params.cross_zone_read ? 0x01 : 0x00; + id_ns_z->ozcs = ns->params.cross_zone_read ? + NVME_ID_NS_ZONED_OZCS_RAZB : 0x00; for (i = 0; i <= ns->id_ns.nlbaf; i++) { id_ns_z->lbafe[i].zsze = cpu_to_le64(ns->zone_size); |