Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp511421pxb; Thu, 9 Sep 2021 06:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztz6HvLdCy+USCbTLpmth2oCmObRvBi01/uvGY/7MgUT6rf5VZYtHHE5HOht5mRe5mIwZI X-Received: by 2002:a92:c6d1:: with SMTP id v17mr2139358ilm.302.1631193026772; Thu, 09 Sep 2021 06:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631193026; cv=none; d=google.com; s=arc-20160816; b=zJrXYfzClq9DdR4PKp7yV+PPDPXpfLMulcv7LP6K2dMNkNbjCq0im+0tdinvqN63F/ 3uluhCQ7Jm12DIW3KA682ueONjlfUh/nTAEdl3/rnSG9sjlYWgeDIjNI9HHycsLj0Bkv ggOPt28HMbdvTnIuC303FDC6wZm3Cl9lthd2ZQb+MX4wLw9xdgywtPyIoDvP9pM9ipRI 5bQ8OYQCTr8R7qqQFKHxXsImpF95rPK/bxT7EY6FYlqL5UuyApR/UpzZlb6oZZ+pUlMb Rx85j8A6VRrwCXaDOK1U5r8sqo4MRXLYc7dOZiHSvLFIHXrhRtxPFHv3wtGvizRERgz6 6Upg== 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=8go0AbJTQo85yyrKapZIMZk4EGO+L3OZqF0OcG7XDcg=; b=y1D4JfqbRKSIRdWLpdaQApOQSlkybSlzGqEzreOYBBepQqOkusO0QcYz02bsCKmLrC NN53fDwhjee1pIdyPF6aBgWuD1Hgf0ztFPMBDtqe0g0h1JRpKqfaQtGLi5yL1OzPBLu1 P9tZL8GE4jhK5vuZT0GJm/r1teqrrydegWNgHlmWdVNV+gZ1jvukjqEkh9cSifhkidjT HECLZMwudAl7mS1aQod33zjxgC4IsVZGup93P7LXv8bOdpnP8SJQZhRPDGTl3U9mfR1/ N3B4negX4gYmeS0YuYhyA5WNpkRZq8TLG7hVwJEnLC4XEFD5ogMeNKVEgLh21K3Hj8x/ ZskQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ETplFBBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g6si1928647ilq.52.2021.09.09.06.10.13; Thu, 09 Sep 2021 06:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ETplFBBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1357806AbhIINEt (ORCPT + 99 others); Thu, 9 Sep 2021 09:04:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:41728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352852AbhIIMvX (ORCPT ); Thu, 9 Sep 2021 08:51:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5839163156; Thu, 9 Sep 2021 11:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631188638; bh=7X5tW0vkiweF1UonXwW8M/dDVIrWkufNyhzFGEKT+iU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ETplFBBXrVnpoFmsodm6oqSHZb1FHhm9ShaaQOWPFCBh3FoBXrZrXrNLq00PAH+3v +QhM0BsOIAbniB5luxBupGvuPfM3J/M50xjgCQMucmJQ2oy6b9+WkUY37bD/0Ft3VO dbHUdlm+zfuVB+I3IG5ZilT7qyUiyVyqnMYSYdJgbslO3mhGrNd+zR8CRZ9D7MrSlK EWkEPi6/SobswNx6bj70I/3e1VxpMvmu+LRw9th5etBDB3Babytcccbo9nQJ2VdTHW 0QtZJIFj8zjGhSC0G38BUhU4MdsWILUJNf8fPKQscbf36xg7T4sIwd+Kr7yHJ27Bix 8uO6pmKX209fA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Yevgeny Kliteynik , Alex Vesker , Saeed Mahameed , Sasha Levin , netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 103/109] net/mlx5: DR, Enable QP retransmission Date: Thu, 9 Sep 2021 07:55:00 -0400 Message-Id: <20210909115507.147917-103-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909115507.147917-1-sashal@kernel.org> References: <20210909115507.147917-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yevgeny Kliteynik [ Upstream commit ec449ed8230cd30769de3cb70ee0fce293047372 ] Under high stress, SW steering might get stuck on polling for completion that never comes. For such cases QP needs to have protocol retransmission mechanism enabled. Currently the retransmission timeout is defined as 0 (unlimited). Fix this by defining a real timeout. Signed-off-by: Yevgeny Kliteynik Reviewed-by: Alex Vesker Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c index f012aac83b10..401564b94eb1 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c @@ -603,6 +603,7 @@ static int dr_cmd_modify_qp_rtr2rts(struct mlx5_core_dev *mdev, MLX5_SET(qpc, qpc, log_ack_req_freq, 0); MLX5_SET(qpc, qpc, retry_count, attr->retry_cnt); MLX5_SET(qpc, qpc, rnr_retry, attr->rnr_retry); + MLX5_SET(qpc, qpc, primary_address_path.ack_timeout, 0x8); /* ~1ms */ return mlx5_core_qp_modify(mdev, MLX5_CMD_OP_RTR2RTS_QP, 0, qpc, &dr_qp->mqp); -- 2.30.2