Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp12052pxb; Fri, 15 Jan 2021 04:38:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzd+e+GoVu0akCrZfSXvxO0hVUA9vAzv/tCXBnXN1EPv6QpU2au1VHkzhHGelWLoPpvFOLe X-Received: by 2002:a17:907:d8d:: with SMTP id go13mr8570437ejc.520.1610714335529; Fri, 15 Jan 2021 04:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610714335; cv=none; d=google.com; s=arc-20160816; b=XNl+WTFSJvV1smLV7OMZ7NpKutSR7l9LqrSRYhOmcEP9KwSmCh26ek4AlR80HtjZEr bvVlvuvysLGns0KxRrJZ5m7bccP8Emd2DRt9NCQZmxXY1Qg746Qzt86RqQ64xzJHZo3B JyTjcIGS10otb4IWJhMBOOGAh/1Rw08f0VUeuMrg8DlOD2pvwrmOjshoz/kzNVb0VE9T fayl/I/BIplK8iI3Id0+IaHH35nlD47Q5RNoIeafYf76V8eawvyLoBQWhFtZc6Ldh7v5 UDFBHX761Y43aaCgvr0cPfFMQ3imkeLxQPCIwtGfkr8E7vuKzoDpL7BTYEONfYl5/0xh Rmbg== 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=d9GkxhKEgtCjk2M6eFF/DNyCx0HsLZ8O9FiJqRj1Krk=; b=WJh+kku7Ak5N75hz71QVg6myb0ovshDH9V8Z204O5BTkMkU26nbZE9es3U8F1e1ala yqYuLosmY9wZCLk4duKRCGyRQWLQ1NNjh827IuQEq0GXZe2oCm7DgxVvR8XtA2Dcixf9 dUnPsjor1i8thXI9GSQ4XoCIxeYpc3URWSpWMI1lElw1MVdcvSoL5wtNc1L1q8EPL+5I BGs/PjvYXvntW3BNFkofjuyUv/uU/O1ZjYEbD0ksav7+k9LGn6Y5SP5M4R4aT+WHpKAs NnLI+U6aK4pXvMcP7TZZ73NUGWbNcv2jZAGTYXTv0BoeYhBWE/h7oRSjIbfMdY1on2jg EcPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=thOhImtg; 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 dv20si3225349ejb.326.2021.01.15.04.38.31; Fri, 15 Jan 2021 04:38:55 -0800 (PST) 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=thOhImtg; 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 S2387757AbhAOMfx (ORCPT + 99 others); Fri, 15 Jan 2021 07:35:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:42934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387738AbhAOMfs (ORCPT ); Fri, 15 Jan 2021 07:35:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 32631224F9; Fri, 15 Jan 2021 12:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714107; bh=abM/FdqvRGvXSce0XqSOJVe7ENalMwRf16m13G9y+bs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thOhImtgbqxk4wcaXoNyJNOkzHVcccD+6PhTjjehXKBZwimLIkUIi2IrwaSPtdG+K 1x16ONzghfsAU66C0ZpUvjBWJ9J6s0/Yqo1CJASYv4qDTPsZ40KkUryUFRsE+uTmE3 CuhV2E4h8JbmIsMIxWuRjVK1JFMqhf0oME4gREJs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Zhang , Maor Gottlieb , Saeed Mahameed Subject: [PATCH 5.4 19/62] net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address Date: Fri, 15 Jan 2021 13:27:41 +0100 Message-Id: <20210115121959.332308387@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@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: Mark Zhang [ Upstream commit 0f2dcade69f2af56b74bce432e48ff3957830ce2 ] In multi-port mode, FW reports syndrome 0x2ea48 (invalid vhca_port_number) if the port_num is not 1 or 2. Fixes: 80f09dfc237f ("net/mlx5: Eswitch, enable RoCE loopback traffic") Signed-off-by: Mark Zhang Reviewed-by: Maor Gottlieb Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/rdma.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/rdma.c @@ -116,7 +116,7 @@ free: static void mlx5_rdma_del_roce_addr(struct mlx5_core_dev *dev) { mlx5_core_roce_gid_set(dev, 0, 0, 0, - NULL, NULL, false, 0, 0); + NULL, NULL, false, 0, 1); } static void mlx5_rdma_make_default_gid(struct mlx5_core_dev *dev, union ib_gid *gid)