From patchwork Thu May 11 07:26:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13237590 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 A930CC77B7F for ; Thu, 11 May 2023 07:38:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237469AbjEKHik (ORCPT ); Thu, 11 May 2023 03:38:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237503AbjEKHii (ORCPT ); Thu, 11 May 2023 03:38:38 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E86A30F1 for ; Thu, 11 May 2023 00:38:35 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-5304d0d1eddso1314683a12.2 for ; Thu, 11 May 2023 00:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1683790715; x=1686382715; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=5+vu5xbvSd/1oIy1VuOl1dKZFeKRkkXHFfPB4wkGcuE=; b=ZzVXAnc13EP5Lknp7H8njwpoAwPRUBrMkQILHtwP6MJmCFUOrFvl8nvYiAyG/w0TMS qeGJmDQH/2PFyCo72RlIADqZXCQGbBzFbaOiY3xLKBg/ZrW+JskyUUnydtneBurUMTLh HL5AI0QDQFp8BTfvOi9IZq4YB0USVgX2sX//E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683790715; x=1686382715; 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=5+vu5xbvSd/1oIy1VuOl1dKZFeKRkkXHFfPB4wkGcuE=; b=XrVzFj9oYVtQkgYymCFnXXZXWQwvxr6U9QkglghKuZ7PFQAWiiD4/ycWnrgrOvqvbW NYs6qrg47uVw+HnF/AkhSD4daGVnx9mJprKT2TAMCrCZQ5LvM7OZFBN3DV/9l65vkzBC SEQtm/2skVRQn9+tBAdT9+WRmPRDZvEAvIxUU2+KYvuBZu/8FhP4Ff2XZKMJcRlLM+CF jed3BVHPt7vym3fKORIhHYfhc9UFfWmu1gXEW7yOfwlULD7TVbmTQfNyLUv0Daw9JKkc lMxef1LHcFV8cZihUaG1uTV1tYO4KFWqzKZ9whd8wTa44c0eI8g7EC37+UrZ3GKhJ+3v bilg== X-Gm-Message-State: AC+VfDx98e9yr4cN5L/p25tNGK7cz8WqsTnlpocbUvkCtW6jwxJG8HTT yj4CYJUn4mwkVOhtbL7WiLpxOw== X-Google-Smtp-Source: ACHHUZ7A8j7uCh9q+WrZi8PLvnuBtLq4aocedzCA0FDtF22rvjhyjlEChoLIrkgOghXMzR0TVyQQ5w== X-Received: by 2002:a17:90a:8d14:b0:24d:e273:8863 with SMTP id c20-20020a17090a8d1400b0024de2738863mr21257000pjo.3.1683790715025; Thu, 11 May 2023 00:38:35 -0700 (PDT) Received: from dhcp-10-192-206-197.iig.avagotech.net.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id n14-20020a65488e000000b00502f4c62fd3sm4174332pgs.33.2023.05.11.00.38.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 May 2023 00:38:34 -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 for-rc 06/10] RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx Date: Thu, 11 May 2023 00:26:21 -0700 Message-Id: <1683789985-22917-7-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1683789985-22917-1-git-send-email-selvin.xavier@broadcom.com> References: <1683789985-22917-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,