[PATCH v2 0/2] Resync Linux and NVMe-cli nvme.h header

Max Gurtovoy mgurtovoy at nvidia.com
Thu Jan 21 04:09:45 EST 2021


Hi Christoph/Sagi/Keith/Chaitanya,
This series introduce synchronization between the kernel
include/linux/nvme.h and nvme-cli linux/nvme.h to ease on maintainance
of both.
The changes for nvme-cli are in the structure of the linux/nvme.h header
file that will be divided to 2 parts: nvme-cli specific code and an
identical copy of the content of include/linux/nvme.h from Linux.
In this way, the resync process will be ease and whole the content of
include/linux/nvme.h will be pasted to that area. Individual commits to
this area will be forbidden and must go through kernel part first.

The additional to Linux include/linux/nvme.h is new enumerations from
NVMe 1.4 specification and the missing parts from nvme-cli that are
originated in common area of the code.

The structures and enumeration that were intruduced only to nvme-cli
were moved to part #1 in nvme-cli linux/nvme.h file and we can decide
whether we need them in the kernel as well. This can be done in future
step. Also new nvme-cli specifics that are not a must in the kernel and
are not in the common code structures/enums can go there.

To test this I run some basic commands as:
- nvme list
- nvme list -v
- nvme list-subsys
- nvme connect/disconnect
- nvme id-ctrl
- nvme id-ns

changes from V1:
 - Added Reviewed-by signature for patch 1/2 (from Hannes)
 - Added resync patch 2/2
 - Added resync nvme-cli patch 1/1

Max Gurtovoy (2):
  nvme: update enumerations for status codes
  nvme: resync header file with common nvme-cli tool

 include/linux/nvme.h | 90 +++++++++++++++++++++++++++++++++++---------
 1 file changed, 72 insertions(+), 18 deletions(-)

-- 
2.25.4




More information about the Linux-nvme mailing list