Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nvme: enable PCI P2PDMA support for RDMA transport

Enable BLK_FEAT_PCI_P2PDMA on the NVMe when the underlying
RDMA controller supports it.

Suggested-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Henrique Carvalho <henrique.carvalho@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Shivaji Kant <shivajikant@google.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>

authored by

Shivaji Kant and committed by
Keith Busch
23528aa3 0a5a9464

+8
+8
drivers/nvme/host/rdma.c
··· 2189 2189 nvme_rdma_reconnect_or_remove(ctrl, ret); 2190 2190 } 2191 2191 2192 + static bool nvme_rdma_supports_pci_p2pdma(struct nvme_ctrl *ctrl) 2193 + { 2194 + struct nvme_rdma_ctrl *r_ctrl = to_rdma_ctrl(ctrl); 2195 + 2196 + return ib_dma_pci_p2p_dma_supported(r_ctrl->device->dev); 2197 + } 2198 + 2192 2199 static const struct nvme_ctrl_ops nvme_rdma_ctrl_ops = { 2193 2200 .name = "rdma", 2194 2201 .module = THIS_MODULE, ··· 2210 2203 .get_address = nvmf_get_address, 2211 2204 .stop_ctrl = nvme_rdma_stop_ctrl, 2212 2205 .get_virt_boundary = nvme_get_virt_boundary, 2206 + .supports_pci_p2pdma = nvme_rdma_supports_pci_p2pdma, 2213 2207 }; 2214 2208 2215 2209 /*