Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp166035rwi; Wed, 12 Oct 2022 17:58:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6v+cUUOfRLyy7RmgWnIWXljsvk5pigI0mYg145vLUgzBi3SejEP3fFuRAUtovhtBM4i48Z X-Received: by 2002:a05:6402:1944:b0:457:fed7:5c30 with SMTP id f4-20020a056402194400b00457fed75c30mr29129470edz.278.1665622696923; Wed, 12 Oct 2022 17:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665622696; cv=none; d=google.com; s=arc-20160816; b=Psp+Sgy3tEtnssQNa/EDIdcTA8ztq3FSCPTHrRe+u3RzlOxTb570HrFQo8bLAZ3CPx DnVK2cHyXPj3A4h6G2wEND3+hwoJswVByUagX/FFnlxgELsnY4YuUrMRhs+HjGbM5ahq pxcI/kZ/bes48tEtp475cuVzEL7hFiKXWbJgpiF25/UylRUdqrWqshcjjRxVuDHPZdzq dXibvmLZlSSLr8Wbq0vhrloJed/98aG9blweN68vG+u0qha3yPSzflIIs3Vx8/o2fnuY 4z9HwrNVwlRq0FLkIKAWiXSm5wNbG7nkfSoDsXwX5Y/hgFfep8I51HBO4vV/BGeD6H9j c3Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VVJEl7cXTe6dk3PEnNNF8Y5iPjGXdngiZi7OT8KdzGo=; b=OUcpyLwDWitqWFpUDgAceRsxlBPo9hP9Ww/YscnH6B4FrnDChZBowhBvku2h+eqHE/ imozyAPn/Nhn7iIG6V9LkbDRFOlWQju34Zbns73K5V2ORK7YzLWhUWg1QwjxmqF5rOMv XSnd0utUcFZLBY/ExH12M3eA3bbZdq/85ylziwFR3dDiQMzwZnzDhoyI3NR79gA0fD7Y l2KVvsgPn7DGgBQj25ef9g5GU5djqCOrNMBvo4d0es9B5/OjAjaJqdW7Vg5hgFzriydE KGNv6WlskNUjb0llZge7fPuzqTfVdlF41Y/md4tzaKW5jny+07s/b0iuKMDH5/ZfciDx TiPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nAZSV6AM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a05640240c300b004574aae3f47si620180edb.509.2022.10.12.17.57.51; Wed, 12 Oct 2022 17:58:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nAZSV6AM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229816AbiJMAQ3 (ORCPT + 99 others); Wed, 12 Oct 2022 20:16:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229780AbiJMAQP (ORCPT ); Wed, 12 Oct 2022 20:16:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C7BD2CE7; Wed, 12 Oct 2022 17:16:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B2CED616B6; Thu, 13 Oct 2022 00:16:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BF06C433C1; Thu, 13 Oct 2022 00:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620173; bh=2vttJVL/wGU2aeD9rhWr5CzNN4oH2sKTlJIu2eSZwmQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nAZSV6AMD0UHS1LoIOrLIxWghhoiEUhwwYws8cTbcbIjNISXyQ+08vMdI/9ZScE7J XNnGBIDMDVxslYcM34wgUqa6YXDDDMI5YjcX8I0vlU3pM6m5LgO4tA6q8i6MwQ2yJI 7hZCEDvC1RRah9oohJ6047kn+Cl0SIbxg14SkhAyaaHRM0eVZ8T2m1QTQnryStBDXu KzdelqOvXnU2Hy14842LvOFy91TGoAVkUJN4tz9OwRRpF3fRkqO6WCYBPuuiHKzUy1 LjXYAOc4rAGsk4VzG0MQaoTxtG01lNibjv2prwpAKe67BCmqPJK9Mq1Rnw9k3z7qf4 jg3g6qU++lMgA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Daisuke Matsuda , Leon Romanovsky , Sasha Levin , zyjzyj2000@gmail.com, linux-rdma@vger.kernel.org Subject: [PATCH AUTOSEL 6.0 06/67] RDMA/rxe: Delete error messages triggered by incoming Read requests Date: Wed, 12 Oct 2022 20:14:47 -0400 Message-Id: <20221013001554.1892206-6-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221013001554.1892206-1-sashal@kernel.org> References: <20221013001554.1892206-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daisuke Matsuda [ Upstream commit 2c02249fcbfc066bd33e2a7375c7006d4cb367f6 ] An incoming Read request causes multiple Read responses. If a user MR to copy data from is unavailable or responder cannot send a reply, then the error messages can be printed for each response attempt, resulting in message overflow. Link: https://lore.kernel.org/r/20220829071218.1639065-1-matsuda-daisuke@fujitsu.com Signed-off-by: Daisuke Matsuda Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/sw/rxe/rxe_resp.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_resp.c b/drivers/infiniband/sw/rxe/rxe_resp.c index b36ec5c4d5e0..7c336db5cb54 100644 --- a/drivers/infiniband/sw/rxe/rxe_resp.c +++ b/drivers/infiniband/sw/rxe/rxe_resp.c @@ -809,10 +809,8 @@ static enum resp_states read_reply(struct rxe_qp *qp, if (!skb) return RESPST_ERR_RNR; - err = rxe_mr_copy(mr, res->read.va, payload_addr(&ack_pkt), - payload, RXE_FROM_MR_OBJ); - if (err) - pr_err("Failed copying memory\n"); + rxe_mr_copy(mr, res->read.va, payload_addr(&ack_pkt), + payload, RXE_FROM_MR_OBJ); if (mr) rxe_put(mr); @@ -823,10 +821,8 @@ static enum resp_states read_reply(struct rxe_qp *qp, } err = rxe_xmit_packet(qp, &ack_pkt, skb); - if (err) { - pr_err("Failed sending RDMA reply.\n"); + if (err) return RESPST_ERR_RNR; - } res->read.va += payload; res->read.resid -= payload; -- 2.35.1