admin-cmd: Added smart-log command support.
authorChaitanya Kulkarni <ckulkarnilinux@gmail.com>
Thu, 1 Sep 2016 19:45:03 +0000 (20:45 +0100)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 23 Sep 2016 22:37:37 +0000 (15:37 -0700)
commit2d79c7dc8fe5cf1158250a5fd25c02d781324cd3
tree7ebc782814221d1da76dcf2a780d3464968528c5
parent478bcb9388f2c3eedba34ed5811793400047f95d
admin-cmd: Added smart-log command support.

This patch implements the support for smart-log command
(NVM Express 1.2.1-section 5.10.1.2 SMART / Health Information
(Log Identifier 02h)) on the target for NVMe over Fabric.

In current implementation host can retrieve following statistics:-
1. Data Units Read.
2. Data Units Written.
3. Host Read Commands.
4. Host Write Commands.

Signed-off-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/admin-cmd.c