Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1733489pxb; Thu, 16 Sep 2021 14:17:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYPvJVvIvqh1TUBt3/OAmeHFhHEKYdgSh8rO1D4SXJ8sCc5Ah42L7LnDpydE3GWbdVMG7f X-Received: by 2002:a92:3642:: with SMTP id d2mr5446073ilf.234.1631827020085; Thu, 16 Sep 2021 14:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631827020; cv=none; d=google.com; s=arc-20160816; b=0m5ZCTvD9ACdT5uWTo8hnhuaQQoHIq8UNZqnHxyHejKI97GGjk0oSId8JSNmyvqPxz 6cWkYN/QVHZG0j0nAOz9lVtS5aAFRdRO6A/x8WzSSWCJah8mGUCMItG2t1oLXcMMt2ua A8yLBFT/5Wk03e+wymgFI4ni5Ehhoj97ru3WsbmO6wTGC8I5deJui1xL8unPuMNVBQFI YaU9+cKLiHjC4RTV9m/+T3GtRqkf+n5VE2nIdux1YPRaP/xQkS/s+aF8fBgFlzCV5ska m9MZqGPNvVTpFEtcOryaUnGE5xy1WuMW6h2CePFUpYKA5VxLjPcxaUNBxMmGyiT3TMWC AJbA== 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=lPT20umdkAN+cyMaPWn/cRZ7BpYQn7QMq5p4b7qRv+w=; b=EaPxwJawPdKc1QLugfzfXz0gCOvgsBgCn7f6peKSpT/bFEGTVoOHYzO5yAyJrk9jBL 4AtEcSphIdMQrK759OImstqsdrcldKNmUNWXys9cwenMbiEFDYIb5zVGxl5MdPaR2lGQ VJBb4GACO5A/eeCmdskPq8IEQA1NgzVazjcFR/YUGTK8vnIO4d8vXw5d8NGRuPcoU7/9 Iz49NDLcqZc7d6CGEyGZ/rYWQfNCFtRotoaMpdOPYVeBRDAiqlVaUqwQgT4YVPPoPHR7 U76bOc5T2reNot9W9+PjFIt6ZIJBYtTLsuw7VTbY98rmBoKeZPOGc5qhYIkdOBUWFnZ+ DviQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=v9JUIf6t; 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 o12si3611868iow.40.2021.09.16.14.16.48; Thu, 16 Sep 2021 14:17:00 -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=v9JUIf6t; 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 S241849AbhIPQao (ORCPT + 99 others); Thu, 16 Sep 2021 12:30:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:58970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241609AbhIPQV6 (ORCPT ); Thu, 16 Sep 2021 12:21:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6653A61263; Thu, 16 Sep 2021 16:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808912; bh=uDb6O9YEaltjgRU4uukfRp0mRS5qa6nxUwPccZ5ji1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v9JUIf6tYz3epouWMSFe9ZE+zresNBJnmedfVpBe8nW1BDQ+ktwuCQ1J5kxuRCZW9 ZlbsvyeN/toaKq9D6dDrXBbGIszM0/PsH7X6LBT4k3BzADSiOgJzvQOU8xeMIal3RQ 0tOk7tWM57ezhr3Ijb80J5aCDggEpb/zG16EcdNY= 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.10 268/306] net/mlx5: DR, Enable QP retransmission Date: Thu, 16 Sep 2021 18:00:13 +0200 Message-Id: <20210916155803.209795002@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 ea3c6cf27db4..eb6677f737a0 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c @@ -605,6 +605,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