nvmf: mask off reserved bits in AER configuration
Set Features - Asynchronous Event Configuration has reserved bits in the CDW11 value, which we shouldn't allow the host to set. Explicitly set them to 0 in the Set Features handler to avoid propagating them to the Get Features return value. Change-Id: I73ed87d6d310e585c073b1db3b875147b4727007 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/403902 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4fce1a5fa6
commit
9a43cbd490
@ -771,6 +771,7 @@ spdk_nvmf_ctrlr_set_features_async_event_configuration(struct spdk_nvmf_request
|
||||
SPDK_DEBUGLOG(SPDK_LOG_NVMF, "Set Features - Async Event Configuration, cdw11 0x%08x\n",
|
||||
cmd->cdw11);
|
||||
ctrlr->feat.async_event_configuration.raw = cmd->cdw11;
|
||||
ctrlr->feat.async_event_configuration.bits.reserved = 0;
|
||||
return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user