Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2567156lkm; Mon, 20 Sep 2021 18:54:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzLxLt6er5LMBv1PlRUVqhlSgHDF8I6PimGPNlHTyvfS/nN3vG/o1d7JUnNW7GMJeI3UCH X-Received: by 2002:a92:db0b:: with SMTP id b11mr19551248iln.275.1632189279339; Mon, 20 Sep 2021 18:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189279; cv=none; d=google.com; s=arc-20160816; b=NmITyOK25IVbQfuYBlguWfgaMqmMp1GbYOkH4OjSnGVyDHBebXM4CxnnHl1CDMujGV JtG+IZRn+G4BcCVlHkUBbLLJccOBb8OuJ1kxOqjsuXEJEg92PN/gYCoHeydbIT0aKtem GX3tWjIQKfRUIjVLSjKZDbUvoYfCGXCzXpRlKxXoVll79ZpLjIUBW+Tsed0QiVKNszjO QtjpBfMIhKDJX1SYMlPjkWpa5jfY2WJ8DljVrCYMentpdl1TZFBwyLjgifksksCh/pvK QmHGSRmeOn1j/hjHc7Gcq+zj84cgdhePAMQuHTZO9DmNE7H8tNCrBIxE1YVQFLVKMRPx 1eGA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8go0AbJTQo85yyrKapZIMZk4EGO+L3OZqF0OcG7XDcg=; b=lNgbQ1HAukXLb7FWLjuMbX8RE52CKf3DSHf3i3xgRNCgRgo1pmNnc5tsf4WDs2TL2o TMmse2901kHDYrHji+8uAeqDvVJMTJ/1iuvi0hq7yEKFo4fqgG93LUv0VCiJ8LOua7AA ror5FQO39T4Oos9zTrWhzdjCcO3CK7Jl4g1LtfCudRu+dmgyQD1l/vIuHr52cUFK0SIU C4wPEas02jmz5anKSekx89BxLkRCP6fIUiXgbKb4MLjW0/q6Fa9gM2XQOx8KldXS4av0 9CLaRrKoeuKRjeqXM+ANR6VuaBvokrHn1yZYqjnpY3nAIT6B6hh7Q4wY+T2GxBtn5WSb RuEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a6xjcHRU; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s124si13382338jaa.47.2021.09.20.18.54.28; Mon, 20 Sep 2021 18:54:39 -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=@linuxfoundation.org header.s=korg header.b=a6xjcHRU; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351142AbhITSSh (ORCPT + 99 others); Mon, 20 Sep 2021 14:18:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:36231 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376522AbhITSMt (ORCPT ); Mon, 20 Sep 2021 14:12:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC9F7613E6; Mon, 20 Sep 2021 17:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158460; bh=7X5tW0vkiweF1UonXwW8M/dDVIrWkufNyhzFGEKT+iU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a6xjcHRUjDDiZGsDxIw9RgLpsEjKj0yf3E0aMBpRLAfiXXAlINOXFkKvRqGkE71kq 6fYmA3/iNjrEnhZPx6hJ7sXH3stQhEg+sGknqacR5gH9VRCplO8aJ6P7mQQ2xjp5Bg MILCp6aE4HNjYSda78mg8sbO5Rae7TYcG0sk3vFs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yevgeny Kliteynik , Alex Vesker , Saeed Mahameed , Sasha Levin Subject: [PATCH 5.4 167/260] net/mlx5: DR, Enable QP retransmission Date: Mon, 20 Sep 2021 18:43:05 +0200 Message-Id: <20210920163936.764495036@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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