]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: cleanup comments for telemetry log structure
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 9 May 2019 15:43:17 +0000 (00:43 +0900)
committerKeith Busch <keith.busch@intel.com>
Thu, 9 May 2019 16:35:45 +0000 (10:35 -0600)
This removes three comments for struct nvme_telemetry_log_page_hdr.

- The comment on top of the definision doesn't describe more than the
  struct name itself.

- The rsvd1 field has already been verified.

- The structures with trailing zero size array are commonly used in
  nvme-cli, so we don't need special comment for telemetry_dataarea[0].

Cc: Keith Busch <keith.busch@intel.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Cc: Kenneth Heitke <kenneth.heitke@intel.com>
Suggested-by: Kenneth Heitke <kenneth.heitke@intel.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
linux/nvme.h

index f6d73413491e49e9aa49cef49ee15deee12679c3..2c840b9466991427782c0bf584dda080269f2023 100644 (file)
@@ -426,9 +426,6 @@ struct nvme_id_nvmset {
        struct nvme_nvmset_attr_entry   ent[NVME_MAX_NVMSET];
 };
 
-/* Derived from 1.3a Figure 101: Get Log Page – Telemetry Host
- * -Initiated Log (Log Identifier 07h)
- */
 struct nvme_telemetry_log_page_hdr {
        __u8    lpi; /* Log page identifier */
        __u8    rsvd[4];
@@ -436,15 +433,10 @@ struct nvme_telemetry_log_page_hdr {
        __le16  dalb1; /* Data area 1 last block */
        __le16  dalb2; /* Data area 2 last block */
        __le16  dalb3; /* Data area 3 last block */
-       __u8    rsvd1[368]; /* TODO verify */
+       __u8    rsvd1[368];
        __u8    ctrlavail; /* Controller initiated data avail?*/
        __u8    ctrldgn; /* Controller initiated telemetry Data Gen # */
        __u8    rsnident[128];
-       /* We'll have to double fetch so we can get the header,
-        * parse dalb1->3 determine how much size we need for the
-        * log then alloc below. Or just do a secondary non-struct
-        * allocation.
-        */
        __u8    telemetry_dataarea[0];
 };