From patchwork Thu Jun 1 11:10:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13263547 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 75D4DC77B7E for ; Thu, 1 Jun 2023 11:22:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231905AbjFALWd (ORCPT ); Thu, 1 Jun 2023 07:22:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232556AbjFALWc (ORCPT ); Thu, 1 Jun 2023 07:22:32 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7636A12F for ; Thu, 1 Jun 2023 04:22:30 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64d341bdedcso418074b3a.3 for ; Thu, 01 Jun 2023 04:22:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1685618550; x=1688210550; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=ElM2qpDL9Ol/ZSKIAQSxFMTYUuTZNZ1bh8yRuYSRoAw=; b=gNnRv4yZb3shOnnJlx1unP0aRT4CPnygPVWMxMNH8EDbJqlCmoiE9RKD06w30Aohqg NsmDgjidnFJIJTxwyGd6o14WQQGblA3wAVUGWPhCj0R0gqRzpPxsg0nwlO4fDQZDIHW6 Cn6Qcd6Rr7ui/4kt/ov3pKsqWRLz5TwqPWU9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685618550; x=1688210550; 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=ElM2qpDL9Ol/ZSKIAQSxFMTYUuTZNZ1bh8yRuYSRoAw=; b=OJn3zBgdyqc+R5LNLhph0DNR4QDrDQNMn3Mn6aLjl6T9+VZybp6inMVozbR8u0PkT1 ITH92PfsGSn8zfp5iVaYL2GVgiN5sbROf267shChNpPv6lL6UFuFFlIkusS0tGYzMjbY NMEvJgWsyxV2HSUFyBvpcx9LZaP/4U54WZWiDt7oJiJn6DG9wtWA37Xisje1xmRgiTvb iI68b9tVXIvrZ27u+lyd93ttqrXjij38Iv8hvbPEHfSi7Fr4mYrE+q5TdhLtU+0kw6Vw mjzooTfo1rDAwVL1wmRU5g/jrdiakKSgelCUaIULrXYv9MKJLEHf5Sf2PaQhwH2SRePF eb7Q== X-Gm-Message-State: AC+VfDxEDTKJ1OEhr4ME3A8hm+m2zmvj59k+leoIE4MmZhUajE8FfqCJ BklLPtRaW3xTnDwuEoWS4OI+UQ== X-Google-Smtp-Source: ACHHUZ5lM4WPx2LOqqSZhT889Ur+w7jNgxtNENXa1VuM6Ymbf9DxwPdV42hd21LDSUuu1RwNMcZBFA== X-Received: by 2002:a05:6a20:1442:b0:103:a24e:9a48 with SMTP id a2-20020a056a20144200b00103a24e9a48mr7123959pzi.17.1685618549783; Thu, 01 Jun 2023 04:22:29 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n3-20020a170902e54300b001ac55a5e5eesm3216496plf.121.2023.06.01.04.22.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2023 04:22:29 -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 v4 for-next 2/6] RDMA/bnxt_re: Add disassociate ucontext support Date: Thu, 1 Jun 2023 04:10:33 -0700 Message-Id: <1685617837-15725-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1685617837-15725-1-git-send-email-selvin.xavier@broadcom.com> References: <1685617837-15725-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 b43acbe..9cc652e 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,