diff options
author | Caleb Sander <csander@purestorage.com> | 2024-01-31 09:43:14 -0700 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-01-31 17:00:45 -0800 |
commit | 7d23e836b00eec96610141549f59e5902dc55fe8 (patch) | |
tree | 14e53192e3d2d02a83ae6ba2b9b45916efcbab7f /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | f9e9115d0c014dec3278d68823eaff159f98f4d6 (diff) |
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 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions