]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: remove Virtual Management support from ONCS
authorKenneth Heitke <kenneth.heitke@intel.com>
Fri, 10 May 2019 21:55:57 +0000 (15:55 -0600)
committerKenneth Heitke <kenneth.heitke@intel.com>
Fri, 10 May 2019 22:38:28 +0000 (16:38 -0600)
Revert commit 096fd4d which mistakenly reported Virtual Management
support in the ONCS field of the Identify Controller data structure.
Virtual Management support is part of OACS instead of ONCS and was
already correctly being displayed.

Signed-off-by: Kenneth Heitke <kenneth.heitke@intel.com>
nvme-print.c

index a88fc28072ba74d2b69ec698049d719dc5f69f8f..c038355bd289453e8e2a0744b6dfb11182e061ab 100644 (file)
@@ -360,8 +360,7 @@ static void show_nvme_id_ctrl_cqes(__u8 cqes)
 static void show_nvme_id_ctrl_oncs(__le16 ctrl_oncs)
 {
        __u16 oncs = le16_to_cpu(ctrl_oncs);
-       __u16 rsvd = (oncs & 0xFF00) >> 8;
-       __u16 virt = (oncs & 0x80) >> 7;
+       __u16 rsvd = (oncs & 0xFF80) >> 7;
        __u16 tmst = (oncs & 0x40) >> 6;
        __u16 resv = (oncs & 0x20) >> 5;
        __u16 save = (oncs & 0x10) >> 4;
@@ -371,9 +370,7 @@ static void show_nvme_id_ctrl_oncs(__le16 ctrl_oncs)
        __u16 cmp = oncs & 0x1;
 
        if (rsvd)
-               printf(" [15:8] : %#x\tReserved\n", rsvd);
-       printf("  [7:7] : %#x\tVirtualization Management %sSupported\n",
-               virt, virt ? "" : "Not ");
+               printf(" [15:7] : %#x\tReserved\n", rsvd);
        printf("  [6:6] : %#x\tTimestamp %sSupported\n",
                tmst, tmst ? "" : "Not ");
        printf("  [5:5] : %#x\tReservations %sSupported\n",