From patchwork Tue Apr 25 19:29:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13223697 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 5E17FC77B73 for ; Tue, 25 Apr 2023 19:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235483AbjDYTaS (ORCPT ); Tue, 25 Apr 2023 15:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbjDYTaR (ORCPT ); Tue, 25 Apr 2023 15:30:17 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5F80E58 for ; Tue, 25 Apr 2023 12:30:16 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1a92513abebso66019255ad.2 for ; Tue, 25 Apr 2023 12:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1682451016; x=1685043016; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=N4xuw0SkMKeAHfe1mtUmu+dTyCkg1tk8dUZ/jdPHspY=; b=gBtug6CmOavUIM/dSxRqueepZLHKnm89Vnzly/C255ZBPFOSpVhJhJS0pmLGeZerRw rVOg6Mp8fEUj2ugzugGZDCmtDqB8m+wrf+3e/Lh5SDE9FxCK/kYOd21CMidHQg0je9Uu /NdwNeNtcLSAtrZLCnaHzSunoVoD8I/nuusc4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682451016; x=1685043016; 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=N4xuw0SkMKeAHfe1mtUmu+dTyCkg1tk8dUZ/jdPHspY=; b=H0g0mo9jhQdF/WJBWqWdm5697Kayu6NwUzAWxTMAqBSbj3/ijH2lQXkEtsq4Vh8ZAT 8SFjsEmyxKPheeKLCn6xtnXTGpXzLztx5QcCdcpKguNEsJlPeiG4TyDtaCXhR2mwaJqw O/5MEaVO5su3cUAka67d/jsBORj7o08lAy5lHN6FDE4AohLafYbAR3x2w6DRmBPO96gU U+P2YrljOgWKq6qGAwITPQxdeUhpDpXTdNyvrSZJSxjpL0OrMOyqxqLT6gGWm9Upcuan wgoYJCOrTHEiXvYl65HHAfpDp9AZMu99mDSlqRLbbMKtWb7ql2exwFrzOUDCYvkSP/OY EuyA== X-Gm-Message-State: AAQBX9f89Izkm5RDNke4ny4Q3oogtArJN77IkNh9VMX9dlUfTXvaESXt Y5d0q4EMU3eDxuSxXnk2ktMIeQ== X-Google-Smtp-Source: AKy350YKNd0l7OBeo++9cGjeLVhWkeZfMR16PYqibVZrQEdL3exxf6w7yt2KnIszGkVP45toQrajcA== X-Received: by 2002:a17:903:22ce:b0:1a9:6397:9919 with SMTP id y14-20020a17090322ce00b001a963979919mr13926957plg.48.1682451016291; Tue, 25 Apr 2023 12:30:16 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w3-20020a170902c78300b001a64ed4621csm8618217pla.182.2023.04.25.12.30.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Apr 2023 12:30:15 -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 v2 for-next 2/6] RDMA/bnxt_re: Add disassociate ucontext support Date: Tue, 25 Apr 2023 12:29:49 -0700 Message-Id: <1682450993-17711-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1682450993-17711-1-git-send-email-selvin.xavier@broadcom.com> References: <1682450993-17711-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 --- v1 - v2: Updated the commit message 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,