]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
plugins/lm: Refine Sequence Indicator description and macro usage
authorDmitry Sherstoboev <sdmitry@google.com>
Tue, 8 Apr 2025 23:53:17 +0000 (07:53 +0800)
committerDaniel Wagner <wagi@monom.org>
Wed, 9 Apr 2025 06:56:28 +0000 (06:56 +0000)
Changed the command dword reference in the sequence indicator (seqind)
help text from CDW11 to CDW10. This aligns with the spec.

Also changed the macro used for setting the sequence indicator bits
in the `mos` field from LM_MIGRATION_SEND_MOS to LM_SEQIND.

Signed-off-by: Dmitry Sherstoboev <sdmitry@google.com>
plugins/lm/lm-nvme.c

index b596c77323a744f3e03ad988b11105a8f3d0cc2d..4f4159fbe9626d77a31d66ed8fbc652094b8a752 100644 (file)
@@ -280,7 +280,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str
                            "  1h = Suspend";
        const char *dudmq = "Delete user data migration queue (DUDMQ) as part of suspend operation "
                             "(CDW11[31])";
-       const char *seqind = "Sequence Indicator (CDW11[17:16])\n"
+       const char *seqind = "Sequence Indicator (CDW10[17:16])\n"
                             "  0h = Not first not last\n"
                             "  1h = First in two or more\n"
                             "  2h = Last in two or more\n"
@@ -394,7 +394,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str
                .args_size = sizeof(args),
                .fd = dev_fd(dev),
                .sel = cfg.sel,
-               .mos = NVME_SET(cfg.seqind, LM_MIGRATION_SEND_MOS),
+               .mos = NVME_SET(cfg.seqind, LM_SEQIND),
                .cntlid = cfg.cntlid,
                .csuuidi = cfg.csuuidi,
                .uidx = cfg.uidx,