nvme: Make sure the driver not exit when aer not supported.

QEMU's virtual NVMe controller device does not support the AER Set
Feature, so ignore its failure and continue.

Change-Id: I8b5c217a3112edabb6f76ec3e5f4ef774981a1d7
Signed-off-by: Cunyin Chang <cunyin.chang@intel.com>
This commit is contained in:
Cunyin Chang 2016-11-29 16:55:00 +08:00 committed by Daniel Verkamp
parent 8a6b62c9ec
commit 51b15b93e7

View File

@ -810,7 +810,7 @@ nvme_ctrlr_configure_aer(struct spdk_nvme_ctrlr *ctrlr)
}
if (spdk_nvme_cpl_is_error(&status.cpl)) {
SPDK_ERRLOG("nvme_ctrlr_cmd_set_async_event_config failed!\n");
return -ENXIO;
return 0;
}
/* aerl is a zero-based value, so we need to add 1 here. */