nvme-fabrics: add queue setup helpers
authorKeith Busch <kbusch@kernel.org>
Wed, 26 Apr 2023 15:04:41 +0000 (08:04 -0700)
committerKeith Busch <kbusch@kernel.org>
Mon, 12 Jun 2023 17:33:03 +0000 (10:33 -0700)
commita249d3066de62ce2ed68fdf6445556658ecba222
treed8e879847d18cd4e5c60c793dc3a2b70070bf7dd
parent4a4d9bc0c86dcd7b6f9b5471962839e8ce7682e4
nvme-fabrics: add queue setup helpers

tcp and rdma transports have lots of duplicate code setting up the
different queue mappings. Add common helpers.

Cc: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/fabrics.c
drivers/nvme/host/fabrics.h
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c