]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print-stdout: Added print for new field CSER (TP4167)
authorNitin Sao <nitin.sao@samsung.com>
Tue, 6 Aug 2024 05:45:11 +0000 (11:15 +0530)
committerDaniel Wagner <wagi@monom.org>
Tue, 6 Aug 2024 11:48:55 +0000 (13:48 +0200)
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 <nitin.sao@samsung.com>
Reviewed-by: Mohit Kapoor <mohit.kap@samsung.com>
nvme-print-stdout.c

index 0d7514b42c57c1704337655288ab8b8bffe2a937..568704a27fe67f42e16f32c5ab8557e80d630c34 100644 (file)
@@ -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)