From: Kenneth Heitke Date: Fri, 10 May 2019 21:55:57 +0000 (-0600) Subject: nvme-print: remove Virtual Management support from ONCS X-Git-Tag: v1.9~69^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=75800fff4a17f6d97ef884772b88a2dfbd84251a;p=users%2Fsagi%2Fnvme-cli.git nvme-print: remove Virtual Management support from ONCS 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 --- diff --git a/nvme-print.c b/nvme-print.c index a88fc280..c038355b 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -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",