diff options
author | 2024-01-31 09:43:14 -0700 | |
---|---|---|
committer | 2024-01-31 17:00:45 -0800 | |
commit | 7d23e836b00eec96610141549f59e5902dc55fe8 (patch) | |
tree | 14e53192e3d2d02a83ae6ba2b9b45916efcbab7f /scripts/generate_rust_analyzer.py | |
parent | nvme: take const cmd pointer in read-only helpers (diff) | |
download | linux-rng-7d23e836b00eec96610141549f59e5902dc55fe8.tar.xz linux-rng-7d23e836b00eec96610141549f59e5902dc55fe8.zip |
nvme: split out fabrics version of nvme_opcode_str()
nvme_opcode_str() currently supports admin, IO, and fabrics commands.
However, fabrics commands aren't allowed for the pci transport.
Currently the pci caller passes 0 as the fctype,
which means any fabrics command would be displayed as "Property Set".
Move fabrics command support into a function nvme_fabrics_opcode_str()
and remove the fctype argument to nvme_opcode_str().
This way, a fabrics command will display as "Unknown" for pci.
Convert the rdma and tcp transports to use nvme_fabrics_opcode_str().
Signed-off-by: Caleb Sander <csander@purestorage.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions