Enable Extended Host Identifier flag is specified in cdw11.
Also added the feature string for kato.
Signed-off-by: Keith Busch <keith.busch@intel.com>
Range Type
--cdw11=<cdw11>::
- The value for command dword 11, if applicable. Only known feature
- using this is the interrupt vector configuration feature.
+ The value for command dword 11, if applicable.
-b::
--raw-binary::
case NVME_FEAT_ASYNC_EVENT: return "Async Event Configuration";
case NVME_FEAT_AUTO_PST: return "Autonomous Power State Transition";
case NVME_FEAT_HOST_MEM_BUF: return "Host Memory Buffer";
+ case NVME_FEAT_KATO: return "Keep Alive Timer";
case NVME_FEAT_SW_PROGRESS: return "Software Progress";
case NVME_FEAT_HOST_ID: return "Host Identifier";
case NVME_FEAT_RESV_MASK: return "Reservation Notification Mask";
break;
case NVME_FEAT_HOST_ID:
cfg.data_len = 8;
+ /* check for Extended Host Identifier */
+ if (cfg.cdw11 & 0x1)
+ cfg.data_len = 16;
break;
}