From patchwork Mon Jun 12 09:48:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13276239 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 04118C7EE23 for ; Mon, 12 Jun 2023 10:23:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232181AbjFLKXN (ORCPT ); Mon, 12 Jun 2023 06:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232397AbjFLKW4 (ORCPT ); Mon, 12 Jun 2023 06:22:56 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1945412373 for ; Mon, 12 Jun 2023 03:02:02 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1b3b974fffeso9787385ad.1 for ; Mon, 12 Jun 2023 03:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1686564045; x=1689156045; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=h/RdloBIC2t3s/uq645nxjsT+R9l8orQJUe4J2kboEI=; b=VsezF9bviXaIhG3MUngk/EyJeUJMpFs8CMBomMSdmPR9Ti88FDOCU45vrTdlBCRsPM AFt3KDORrsi0zoB6lU7bYxEcO0jhXbCfsMMjJIwXnrYtc4zmyNp/Bi2wfJHoj205Klv7 Lu/QlYd5si+yGOCKQK3YwOEZlHSSvMaR1Kcrw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686564045; x=1689156045; 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=h/RdloBIC2t3s/uq645nxjsT+R9l8orQJUe4J2kboEI=; b=jKbzQi+EROqQr/JiIEogD0trNTfiak6aDSYBOI8ZYrd12Vl7m0O0BofR2Dt7K/uLQc m/EoNdZwothpGmGNSgAdHHVkd2h9lRK3y9FifbQpKW/WUHmsZ+ORF1kVP8ii11m9yVWX oqgUSAN3bbI6p3jiWdXfaOTNYNSxvZ2/sDpAUquX2EdBX5UZ++qQuGcw3CS9Zxq/2I/u Pucc8J8M7W1tvJxx7lNIzmUr610Z5GSwnHPGP2cI8zLMTpklhVXtkdi3UGgE+NguK70O 1v87es2cNF3KJbia69vcJjnkHLzVBin6E3eENu5t/0DjMk+zGnD7C4eWcYS3lP/nxi3K Wxeg== X-Gm-Message-State: AC+VfDzT6XvM5C/zOBUc36gNdHvOCViDlsXOSYVtdHsvtZTCaeTQ2RAI E3RPt08wkYbPysDSIPni7qNJ8NCJ8ofnZPPgbLE= X-Google-Smtp-Source: ACHHUZ6nBKI29t3CFvL1D0XjwjGdxJfn29aN9RNthBTH4LtLfDj2v3hfYN7ETgTzAgA9mFXQ3INojQ== X-Received: by 2002:a17:902:c407:b0:1b0:49e1:6dc4 with SMTP id k7-20020a170902c40700b001b049e16dc4mr7592322plk.56.1686564045550; Mon, 12 Jun 2023 03:00:45 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id q16-20020a170902dad000b001ae2b94701fsm7792050plx.21.2023.06.12.03.00.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jun 2023 03:00:44 -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 v5 for-next 2/7] RDMA/bnxt_re: Add disassociate ucontext support Date: Mon, 12 Jun 2023 02:48:57 -0700 Message-Id: <1686563342-15233-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1686563342-15233-1-git-send-email-selvin.xavier@broadcom.com> References: <1686563342-15233-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,