Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp464436pxb; Thu, 9 Sep 2021 05:11:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQl34K8bPh290euh2JzWHxNeOJMdZY+gRMLqyBYOXqUc71oD3muSj2xa4rioT6a1YS88Eu X-Received: by 2002:a05:6e02:1c2b:: with SMTP id m11mr2014492ilh.242.1631189478808; Thu, 09 Sep 2021 05:11:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631189478; cv=none; d=google.com; s=arc-20160816; b=qvdsZPfxptIB6i+cQZc6PS0zJpvVyexPUOkJL5NLe7EQVRxLb9UK0Bb7NHHjWCZ0iZ 6GRhwMH1e6vsEykK66hilEp8mzYmV/FeIPhj921EscVENueLNipjmUGtBezuWGrKt9wi uCnheX8AV7bQVzgRDEPR4wqoOB6CNVUnzQpd0OPIQnEdg6evB/qpzDZ1Rjbv3r6Q6BXP PnEb1jKPj5LmmFOs+eu5t66A5sTAQxs/wXEAqATAh2gj8DZZ3hxJB22/TuLWzAzWn4Xe vQeZfxns6VEtgeOkgkFi4x1lWi3wx+stUcpUkBYvL0a6Wph0dfjK9zxufPDkAKMF7VeM BROg== 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=+0W/w59zlZNpSFxuHC4EkmUj+KvRxbzm8oXlO9/Hn6E=; b=loZsq7Q3jzT0mX9rqzmjBmL4k204wgshFZ91lPISVOd8ljGQH2ScSliUOwY/qF8lqW xg6UBeu6OrQ2QM/QdLD5oo71f2j4diKqMoLgMAor9h9AhOqhgNuDFPkEjCwDi+eMjCTF xfJ4GzsBpMW6YiN6acMAYEvdhyn99omTKWoaw0oJBguZ1I2hE6oUvKDKsVRPeCS9fUSj C9nnhw6ViJ0y2KWrk4849OhqHa1WU4mteniVrQZRJRb94EDgyipOMpTYL1TnZksSzCEU +Wl5cVSpjiviNv0q+PPFIwzrqE+iYjPgHaxPhGH9tnDBpUqFxVJ2CamDXke2IQIpdBXU gW1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SkDm0y1R; 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 i62si1358256iof.83.2021.09.09.05.11.06; Thu, 09 Sep 2021 05:11:18 -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=SkDm0y1R; 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 S1351061AbhIIMJY (ORCPT + 99 others); Thu, 9 Sep 2021 08:09:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:42148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242042AbhIIMA1 (ORCPT ); Thu, 9 Sep 2021 08:00:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 001CE6139D; Thu, 9 Sep 2021 11:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187975; bh=20N7xoLr4PRRg/0ghZb/xVzS0Tot4rz49UzpNxcUcFM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SkDm0y1R27GgzYhDVI73PagX4SE2HY7ONgOsDVqucw3MEMcdVf5nf8F7uuLlbYl3r WQ7P5cYvbSNF+YgQ1FjfVCEwVjmwVqAt0mtpDhHLdLpi2c5mG5/LWCuuuvpDi7FsvT fGu/2qdL0Rz2yirfcDnQ6f2wk0uRSI5Mg3vvXKrp7si4zjthVGLIl4rp8Bey0azBKw 3id3Vq0PnsZz1mPvjox52PsTSiLdeWl3j9nPNjdMFMXnUP+RZeeE200RjVslNYPD4+ aBnzNrWp36bfEzX7n1ZfmatfeGWdZph3JXyaRiPOgITBVBplN75dK9nLxYArgd6qSx 9feSEHJxubdsg== 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.14 238/252] net/mlx5: DR, Enable QP retransmission Date: Thu, 9 Sep 2021 07:40:52 -0400 Message-Id: <20210909114106.141462-238-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-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 9df0e73d1c35..69b49deb66b2 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c @@ -620,6 +620,7 @@ static int dr_cmd_modify_qp_rtr2rts(struct mlx5_core_dev *mdev, 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 */ MLX5_SET(rtr2rts_qp_in, in, opcode, MLX5_CMD_OP_RTR2RTS_QP); MLX5_SET(rtr2rts_qp_in, in, qpn, dr_qp->qpn); -- 2.30.2