aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorLogan Gunthorpe <[email protected]>2022-07-08 10:51:02 -0600
committerChristoph Hellwig <[email protected]>2022-07-26 07:28:07 -0400
commit495758bb1a72316094ee854dc51f667ad3db29b5 (patch)
tree2c72be9c3fcacde2dfde6e7eb59db6ae03afd171 /scripts/bpf_doc.py
parent91fb2b6052f75a2f9375db5d5924860ab2313a1d (diff)
RDMA/core: introduce ib_dma_pci_p2p_dma_supported()
Introduce the helper function ib_dma_pci_p2p_dma_supported() to check if a given ib_device can be used in P2PDMA transfers. This ensures the ib_device is not using virt_dma and also that the underlying dma_device supports P2PDMA. Use the new helper in nvme-rdma to replace the existing check for ib_uses_virt_dma(). Adding the dma_pci_p2pdma_supported() check allows switching away from pci_p2pdma_[un]map_sg(). Signed-off-by: Logan Gunthorpe <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions