nvme: add nvme_opcode_str function for all nvme cmd types
authorAmit Engel <Amit.Engel@dell.com>
Mon, 12 Dec 2022 19:40:35 +0000 (21:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 Feb 2023 13:22:00 +0000 (14:22 +0100)
commit567da14d46aa726ee05749278355517489e01331
tree77514f6f746d9ca2c48f3e32ad7a8e5bfd7954f1
parent62281b9ed671bee71737b42cb72f3c140ac2aef1
nvme: add nvme_opcode_str function for all nvme cmd types

nvme_opcode_str will handle io/admin/fabrics ops

This improves NVMe errors logging

Signed-off-by: Amit Engel <Amit.Engel@dell.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/constants.c
drivers/nvme/host/nvme.h