Skip to content

Commit 390bf42

Browse files
selvintxavierjgunthorpe
authored andcommitted
RDMA/bnxt_re: Add disassociate ucontext support
Add driver disassociation support. Driver uses the APIs rdma_user_mmap_io api while mapping the IO pages to user space. Add empty stub for disassociate ucontext. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 24ce947 commit 390bf42

File tree

1 file changed

+5
-0
lines changed
  • drivers/infiniband/hw/bnxt_re

1 file changed

+5
-0
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,10 @@ static int bnxt_re_net_stats_ctx_alloc(struct bnxt_re_dev *rdev,
472472
return rc;
473473
}
474474

475+
static void bnxt_re_disassociate_ucontext(struct ib_ucontext *ibcontext)
476+
{
477+
}
478+
475479
/* Device */
476480

477481
static struct bnxt_re_dev *bnxt_re_from_netdev(struct net_device *netdev)
@@ -538,6 +542,7 @@ static const struct ib_device_ops bnxt_re_dev_ops = {
538542
.destroy_qp = bnxt_re_destroy_qp,
539543
.destroy_srq = bnxt_re_destroy_srq,
540544
.device_group = &bnxt_re_dev_attr_group,
545+
.disassociate_ucontext = bnxt_re_disassociate_ucontext,
541546
.get_dev_fw_str = bnxt_re_query_fw_str,
542547
.get_dma_mr = bnxt_re_get_dma_mr,
543548
.get_hw_stats = bnxt_re_ib_get_hw_stats,

0 commit comments

Comments
 (0)