From patchwork Mon May 15 09:06:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13241028 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CEC4C7EE32 for ; Mon, 15 May 2023 09:22:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237674AbjEOJWs (ORCPT ); Mon, 15 May 2023 05:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239696AbjEOJWS (ORCPT ); Mon, 15 May 2023 05:22:18 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F381995 for ; Mon, 15 May 2023 02:18:34 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-643a1656b79so8842833b3a.3 for ; Mon, 15 May 2023 02:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684142313; x=1686734313; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=0S4PaSlf1DJ4tymQ+kUv7lSs6Fr1DigQV1vXK93Y9g8=; b=YL7GDAkMxOTSI0GYu/F5PyGrRkz699yp3GN637tld0/fRPCfAqLlkeRDHOhdvCRlnx +aJ2Lf7jQ6KV8K6ho3nWI01M/MVp1BliuLLatGDtolY/dZLRrGalKxr/yVeBuHPLjh3v tin9ACii9/+w68aazFOUizuNwyA19OD1SqBq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684142313; x=1686734313; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0S4PaSlf1DJ4tymQ+kUv7lSs6Fr1DigQV1vXK93Y9g8=; b=Agh9WAK7IfT9kYKIRaym3B1zzRDdTvG0ZvwJ0ynB8qcRZY5kpmjxNQ30dibf6rjBGc ySRQGPZHBxU9ZHbORMQ0rBfpzAPqzOe6vFuJ20mnYChl4zW8dbb0/bmNDxKwB1k9ODXa b+MLSRUrt8c1rJcT26kKrK/bUE1CBbwH2ADew1sNUq5OVSi8Xf2JTsmSYgd0F0r1w6CV 4AKNFwXIPTCaOMCNndq0e8iS02i77BPZBDk0cbZS1dQ6bORc0WF7j8eMT1VPWC8dPYve 7mdfceD9hKAh98saQms7edUEUJcmNkXM+ffL/3eZcL3J4l+wxfWOB/dYC+G0Q5jRlTxA jjLw== X-Gm-Message-State: AC+VfDxVGF0V3waCneY+SgS5eSB3VGQ1Vjc3aBSerrt75c/gBwebH4ne aMyrAI6Q2fo4n8VHYvFQn/39nA== X-Google-Smtp-Source: ACHHUZ7kJQIsV9Yfewf2TOCd6GZw2WjbHWe97R3kP6lbajyAsFz1uq1Ye/2WqCG9BtSwoY5WBo91bA== X-Received: by 2002:a05:6a20:6a0f:b0:102:f6f2:c962 with SMTP id p15-20020a056a206a0f00b00102f6f2c962mr22388479pzk.54.1684142313693; Mon, 15 May 2023 02:18:33 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id q7-20020a654947000000b00520f316ebe3sm10402169pgs.62.2023.05.15.02.18.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2023 02:18:33 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Selvin Xavier Subject: [PATCH v3 for-next 2/6] RDMA/bnxt_re: Add disassociate ucontext support Date: Mon, 15 May 2023 02:06:46 -0700 Message-Id: <1684141610-17588-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1684141610-17588-1-git-send-email-selvin.xavier@broadcom.com> References: <1684141610-17588-1-git-send-email-selvin.xavier@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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. Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 1d361eb..a866951 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -466,6 +466,10 @@ static int bnxt_re_net_stats_ctx_alloc(struct bnxt_re_dev *rdev, return rc; } +static void bnxt_re_disassociate_ucontext(struct ib_ucontext *ibcontext) +{ +} + /* Device */ static struct bnxt_re_dev *bnxt_re_from_netdev(struct net_device *netdev) @@ -532,6 +536,7 @@ static const struct ib_device_ops bnxt_re_dev_ops = { .destroy_qp = bnxt_re_destroy_qp, .destroy_srq = bnxt_re_destroy_srq, .device_group = &bnxt_re_dev_attr_group, + .disassociate_ucontext = bnxt_re_disassociate_ucontext, .get_dev_fw_str = bnxt_re_query_fw_str, .get_dma_mr = bnxt_re_get_dma_mr, .get_hw_stats = bnxt_re_ib_get_hw_stats,