File 0017-nvme-print-add-discovery-async-event-config-field.patch of Package nvme-cli.26590
From: Martin George <marting@netapp.com>
Date: Wed, 27 Oct 2021 14:30:24 +0530
Subject: nvme-print: add discovery async event config field
References: bsc#1191935
Git-commit: b7ccd742924ffcb8770ee5dd1a88adc39636451e
Add a new async event config field for discovery log page
change notices.
Signed-off-by: Martin George <marting@netapp.com>
---
nvme-print.c | 1 +
1 file changed, 1 insertion(+)
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -4573,6 +4573,7 @@ void nvme_feature_show_fields(__u32 fid,
printf("\tDisable Normal (DN): %s\n", (result & 0x00000001) ? "True":"False");
break;
case NVME_FEAT_ASYNC_EVENT:
+ printf("\tDiscovery Log Page Change Notices: %s\n", ((result & 0x80000000) >> 31) ? "Send async event":"Do not send async event");
printf("\tTelemetry Log Notices : %s\n", ((result & 0x00000400) >> 10) ? "Send async event":"Do not send async event");
printf("\tFirmware Activation Notices : %s\n", ((result & 0x00000200) >> 9) ? "Send async event":"Do not send async event");
printf("\tNamespace Attribute Notices : %s\n", ((result & 0x00000100) >> 8) ? "Send async event":"Do not send async event");