From patchwork Mon Apr 10 11:11:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13206287 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 E8891C77B61 for ; Mon, 10 Apr 2023 11:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229595AbjDJLMm (ORCPT ); Mon, 10 Apr 2023 07:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjDJLMl (ORCPT ); Mon, 10 Apr 2023 07:12:41 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFAD36596 for ; Mon, 10 Apr 2023 04:12:15 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id g3so5092035pja.2 for ; Mon, 10 Apr 2023 04:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1681125135; x=1683717135; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=RU4QMuBmMG3VQ4GWLdrSr0166yighGRjaN09CwV3wzc=; b=Ot15zaZM2+Wf3qlaWu7rnNtg2rvr+KDPvoGp1oyY4dzqD+wSEBVgbhXj7bawW7pN8f vlh6/iRHhDjIWqqsAg/4ptIj88EphE4iNRRDHlyPH5rM7dIHwl+etUyHOJFxGxUOiqMA 5Cpm14g+PE/Ecmd/0q0dyVAMbk06QagVNdCCI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681125135; x=1683717135; 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=RU4QMuBmMG3VQ4GWLdrSr0166yighGRjaN09CwV3wzc=; b=F+XTTOnr5ToMUxbZMdOQn7vsi+ACsIsD49PZsqQSXBwm4/bZeTNdK7H5GvvGaAgCVj BaNepDvkI9qCGJSCCUW/odJBLxF3Lkf3RsWpNWSlKEaXOWJF2FCQRE7g483fDBxroB1U fjrd0EgPzPWC54EQqhijuvrENTVX++aVvxeAe7AtEHbDv3XrkKnqeLZ2BTRR3JwN4mOb P8YwCiFV1ziqA2S2CuVMXmk9Vwc/QHRruX8ZJMkzr0AT2Szb4RlhBGBRNpCizJMr4RNg f1HMMtBZzwHIfeVzgeyCM6b+qYvgwpU0UmSEUpIP1oLqu8UrhlSGFMNg8QEnp1WgjWHK TdUA== X-Gm-Message-State: AAQBX9cHJpmo50ks9h/xUX+aI0MZZu79QCUqhE8iPGpF53nBF22FypI9 adRmYsGoX8rj+YDHy8mZa/91vQ== X-Google-Smtp-Source: AKy350ZHxRDRfxaB9/fk7AYR+3QWI6OtLHdgYGFeSMNjhRoFnqDNOjKmkHF+smBMfD4zAdj/VBojoQ== X-Received: by 2002:a05:6a20:1a2a:b0:da:5ab7:8cf3 with SMTP id cj42-20020a056a201a2a00b000da5ab78cf3mr9855604pzb.30.1681125134815; Mon, 10 Apr 2023 04:12:14 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y10-20020aa7854a000000b005ded4825201sm7641875pfn.112.2023.04.10.04.12.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2023 04:12:13 -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 for-next 2/6] RDMA/bnxt_re: Add disassociate ucontext support Date: Mon, 10 Apr 2023 04:11:51 -0700 Message-Id: <1681125115-7127-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1681125115-7127-1-git-send-email-selvin.xavier@broadcom.com> References: <1681125115-7127-1-git-send-email-selvin.xavier@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Add empty stub for disassociate ucontext as done in other vendor drivers. 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,