From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796386358; b=1hgwSemTgD5AFZ2OJVwcezvt22rqqK1TIE5xGCAWGPEf5zaIM0Gbpc26uIaPP+ovAEJK /o9NXgiNynaPlXoTL5JWO9MbuV9/zx4fnAAiCeWwvpRQOIqJ8sfb9zzsoh4ZYZofiM6BF mqwogUHYIGjA2VNOEmBVVR+/0lHihMf7cLKqU7b1VS6Uusfr4BTUYWJBNmd8gdJNiYu42 VKyapVNvz80bzUrtwZlg9CeZrzlba8V3TZJ4OxOa2kO8lRp7RNjHJ8YUC8ZO6aH6qXRdP O+e35P7altEN4BJyAxx045tdXkI1vejCzc+l/yN2q7/vjxnxvOvdtqIffv9YMmSHLDA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386358; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=RhMyK2FDQUVbTrmu885m85lGS81ORs5A8gJ3fXxMcKI=; b=3uAXxKJeFAFc3MS3xI8r8CjP+yLEkp3hGSms/TDErP7CbDeZXfUY4Yin+X8D3Ng8BRIH 0NpieonZays9zctsG+T+yVYrYv4qG52ISfW914jps/UkoMWQsHfukxeuvES9kEETBVLdy UrD1a/VwzPEiJpUng9muZ24jyRkQJrL2IdluzwXSXHDqfZkIs315SrZz8qEil8bzvOdgx FhNRtO7tFMsQx04WrHVU4Zo5jG/UrZJVehYSLj+2QqX/UjyKq/SPQ6uYP2Qade+ioC5CC WyuCLGXFJlQzZfOYu57xI6XjuZv8tDhHqwXWxDubwmhArsUjZOsgqdR9JKXj2QiFfIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WOeacVmf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A486D606A32C; Fri, 4 Dec 2026 12:12:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WOeacVmf Received: by smtp.kernel.org (Postfix) with ESMTPSA id E22BE1F00936; Fri, 4 Dec 2026 12:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386358; bh=RhMyK2FDQUVbTrmu885m85lGS81ORs5A8gJ3fXxMcKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WOeacVmfLBirizfL/0Mked5FV5s5/r+t1vuV9rKKGOPUDEtIK4s1WK3Pql+JZXkKR pcLf8Iy+3P2rbEFOYofuH28l1NZ9Q0KoPx6aZnwyfk1kfjL0NW5/xaA9Q9ksHKC4c5 qvBjCAchVrKBxALnUjGzjFN5FPWc0VDMhamzP92g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Uri Dar , Shay Drory , Mark Bloch , Tariq Toukan , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.6 0928/1167] net/mlx5: E-Switch, skip vport change work for disabled vports Date: Fri, 4 Dec 2026 19:05:55 +0900 Message-ID: <20261204100726.364790787@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uri Dar [ Upstream commit 890f23ba87a7ca1aba97c8320770a686e3b689fb ] A vport change work can still be pending when its vport is disabled. For an SF, the vport is then freed in FW and the work's query fails with syndrome 0x29d722. A disabled vport has nothing to sync, so skip the work. Fixes: d970812b91d0 ("net/mlx5: E-switch, Add eswitch helpers for SF vport") Signed-off-by: Uri Dar Reviewed-by: Shay Drory Reviewed-by: Mark Bloch Signed-off-by: Tariq Toukan Link: https://patch.msgid.link/20261118165155.1946097-1-tariqt@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c index a096f7c031cd1..1e67c1cbdced0 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -758,7 +758,8 @@ static void esw_vport_change_handler(struct work_struct *work) struct mlx5_eswitch *esw = vport->dev->priv.eswitch; mutex_lock(&esw->state_lock); - esw_vport_change_handle_locked(vport); + if (vport->enabled) + esw_vport_change_handle_locked(vport); mutex_unlock(&esw->state_lock); } -- 2.53.0