From patchwork Tue Jun 13 18:12:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13279143 X-Patchwork-Delegate: jgg@ziepe.ca 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 5449FEB64D0 for ; Tue, 13 Jun 2023 18:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239161AbjFMSYJ (ORCPT ); Tue, 13 Jun 2023 14:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238374AbjFMSYI (ORCPT ); Tue, 13 Jun 2023 14:24:08 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E6C5CE for ; Tue, 13 Jun 2023 11:24:07 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1b3b56dcf1bso28292465ad.2 for ; Tue, 13 Jun 2023 11:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686680647; x=1689272647; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=UEi5JhturaEU4d58XorBrBLNtiT2t7w+fCl0zei1ECc=; b=hHBoxS+c/1U+WbTjmtV8Nml+M0wNb6Rhk1i9LvOSmiIYCg21uX6xZ64ZBzU9Ln/7xo wmo9BcWWc9+/cG1Gk2BUAwPXIMRHGCtqpvmJ1VtSgAGFzfFAINacoF0pruVqITS/KhWC w7ctoZi92jYF2QOtgF60jwNS03tMYVjfTG9JA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686680647; x=1689272647; 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=UEi5JhturaEU4d58XorBrBLNtiT2t7w+fCl0zei1ECc=; b=E1hkGWFY/lfdVDEh1iXu+u0HSAsEeDETs1WJubRSa9R7prUwtIffO+jPvubAqPUZla hZfiRW8dE14ybhe0KySgUavXAZhB9nDMR8TYEHMlM1xlGQ/qoysLhQIF+e2+PXsxTUmu pR8YPiusXpHv4AJlxO0vAI7CnVMSW4ENsyWQtYzdOORkGy/D8fS+rgQjj9S2DXxe3JFq sbcK5ZEjTWEE6U89zAA1i/Yj7hh0Wt8k6DCK5kE5j9eeYJzLYJ/w9r37SxppYgZGluTr At0VwKzWYTEbLLPlFjng7RxPZ1uxPUoe3Heofnrf7AAZkh3iNeqxO0ryvywtB6ZlySgw M1Yw== X-Gm-Message-State: AC+VfDwyY8KunmtFpxuL4yrIbOfZhPXZRS8+GbeCIz+xGaSNmitdhqEL 4dQij27YMHDj2i3Cv/hrgrtKBQ== X-Google-Smtp-Source: ACHHUZ4aMW7dBZmtS3uFyJJvhyE1H5lvfTJplsjyAqMrkPTptuo6nKpEcw9KMzajs7Syrkx1vBDMUQ== X-Received: by 2002:a17:902:f687:b0:1a6:6fe3:df8d with SMTP id l7-20020a170902f68700b001a66fe3df8dmr14388118plg.8.1686680646938; Tue, 13 Jun 2023 11:24:06 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id iw21-20020a170903045500b001b3fb909f73sm285493plb.112.2023.06.13.11.24.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jun 2023 11:24:06 -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 v6 for-next 2/7] RDMA/bnxt_re: Add disassociate ucontext support Date: Tue, 13 Jun 2023 11:12:18 -0700 Message-Id: <1686679943-17117-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1686679943-17117-1-git-send-email-selvin.xavier@broadcom.com> References: <1686679943-17117-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 acef429..406b100 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -472,6 +472,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) @@ -538,6 +542,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,