From patchwork Thu May 18 08:11:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13246290 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 6ADC1C77B7D for ; Thu, 18 May 2023 08:23:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjERIXv (ORCPT ); Thu, 18 May 2023 04:23:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229982AbjERIXs (ORCPT ); Thu, 18 May 2023 04:23:48 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBEFE19B2 for ; Thu, 18 May 2023 01:23:26 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d2467d63fso98159b3a.0 for ; Thu, 18 May 2023 01:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1684398185; x=1686990185; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=3oudnmeF1UdQVVWapzcFzz6TigNu8DDvRfu5qrese2c=; b=gq9jqqMDP2WNEJBEiCvx+jHfzR8q4R5qXUgNEwp1J2Ka42AHReAudtG2QEhHWbChsy Jzz3vAuvPyd7kL5oCiDXlwPRd8CvZ3+vVhMG7h9twt7jRjY/nGQrop7XzxA1b41OZU2h Tq0z9j8zl/dpx1Fikd3QxihVz0HeUVs3r9YpQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684398185; x=1686990185; 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=3oudnmeF1UdQVVWapzcFzz6TigNu8DDvRfu5qrese2c=; b=R5c4h4C8QOj5LtMC9kGu2JR7q9hM9Jr6m1XQC+sNruL1Sj3xP5fshRmPrwHm0o6EWx PSnsIh3+KvQ5F+eUGV8JNCvrH8DgvNRcXDSsxGjFiTo+y7fljSMYZM2BD88BAwtlkxZ9 HHkydc3kuTR7GopbK97CRqGiSwrLsXBoE4YT/CRg7GcpI1pa7HX59DsC8Yao1QcyMKGh lNUap3ndjZX+GFRv4pQA9fPWBhpQJGIkRjUkKflce+Ov9nmnz67n0JBuWW1Ld/8QB8xh RTw7+LaYAbIZJ+lyTOzckhVpcLGZyXo69Was1Lwh1S4Nauq89ZImU1V67J9FuurvEKHr FmRg== X-Gm-Message-State: AC+VfDysVEhn+gLpN84zV1lvBXJFzEFdMohrzW9tggsApOLGjq+19MM/ /kKRda5hsptOMNdbnBUsmnsCF0dtXzI8/kU/2lM= X-Google-Smtp-Source: ACHHUZ4P/DEWd4ItYVTkiCbwXW75+eKwGURgeIbqSCyYlM+Cz5U8au9qqVQktlknJMIBbj0xHRTZAA== X-Received: by 2002:a05:6a00:1255:b0:64c:aa98:a69f with SMTP id u21-20020a056a00125500b0064caa98a69fmr3732513pfi.1.1684398185095; Thu, 18 May 2023 01:23:05 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id b24-20020aa78718000000b0062dd9a8c1b8sm806922pfo.100.2023.05.18.01.23.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2023 01:23:04 -0700 (PDT) From: Selvin Xavier To: jgg@ziepe.ca, leon@kernel.org Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Kalesh AP , Selvin Xavier Subject: [PATCH v2 for-rc 2/3] RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx Date: Thu, 18 May 2023 01:11:00 -0700 Message-Id: <1684397461-23082-3-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1684397461-23082-1-git-send-email-selvin.xavier@broadcom.com> References: <1684397461-23082-1-git-send-email-selvin.xavier@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org From: Kalesh AP bnxt_re_process_raw_qp_pkt_rx() always return 0 and ignores the return value of bnxt_re_post_send_shadow_qp(). Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Reviewed-by: Hongguang Gao Reviewed-by: Ajit Khaparde Signed-off-by: Kalesh AP Signed-off-by: Selvin Xavier --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index e86afec..0b581c2 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -3343,7 +3343,7 @@ static int bnxt_re_process_raw_qp_pkt_rx(struct bnxt_re_qp *gsi_qp, /* post data received in the send queue */ rc = bnxt_re_post_send_shadow_qp(rdev, gsi_sqp, swr); - return 0; + return rc; } static void bnxt_re_process_res_rawqp1_wc(struct ib_wc *wc,