From: Nitin Sao Date: Tue, 6 Aug 2024 05:45:11 +0000 (+0530) Subject: nvme-print-stdout: Added print for new field CSER (TP4167) X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c19d90ab7a96f2c808e41a0f6185b77029078c86;p=users%2Fsagi%2Fnvme-cli.git nvme-print-stdout: Added print for new field CSER (TP4167) As per TP4167, added print for a new field CSER (Command Submission and Execution Relaxations) [15:14] added in Commands Supported and Effects Data Structure. Signed-off-by: Nitin Sao Reviewed-by: Mohit Kapoor --- diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index 0d7514b4..568704a2 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -3744,6 +3744,13 @@ static void stdout_effects_log_human(FILE *stream, __u32 effect) fprintf(stream, " CCC%s", (effect & NVME_CMD_EFFECTS_CCC) ? set : clr); fprintf(stream, " USS%s", (effect & NVME_CMD_EFFECTS_UUID_SEL) ? set : clr); + if ((effect & NVME_CMD_EFFECTS_CSER_MASK) >> 14 == 0) + fprintf(stream, " No CSER defined\n"); + else if ((effect & NVME_CMD_EFFECTS_CSER_MASK) >> 14 == 1) + fprintf(stream, " No admin command for any namespace\n"); + else + fprintf(stream, " Reserved CSER\n"); + if ((effect & NVME_CMD_EFFECTS_CSE_MASK) >> 16 == 0) fprintf(stream, " No command restriction\n"); else if ((effect & NVME_CMD_EFFECTS_CSE_MASK) >> 16 == 1)