lkml.org 
[lkml]   [2021]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v3 11/20] RDMA/core: introduce ib_dma_pci_p2p_dma_supported()
    From
    Date
    Logan,

    On 9/17/2021 2:40 AM, Logan Gunthorpe wrote:
    > 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 <logang@deltatee.com>
    > ---
    > drivers/nvme/target/rdma.c | 2 +-
    > include/rdma/ib_verbs.h | 11 +++++++++++
    > 2 files changed, 12 insertions(+), 1 deletion(-)

    Looks good,

    Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>


    \
     
     \ /
      Last update: 2021-10-06 00:32    [W:4.481 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site