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=1796389151; b=voG1MrpRyEHHGNRWraphnd94obkgrlCgppeFWDfO0KIg8ch4Rw+htyBu1xGUktzQqr6E 62lTUyJFxuSSnjMFT/oQ1w7OTlJvW08cEU9qhWWUexbuFMscQycrck+mJsukkfC2uvRNy U8QxWEaOPCGnj+ZMDiHqHXb8NvMYkjqqp2zY1VhgeQzyQezhHy3ycGsIljo3gd+Su1TsW uZKVvKD4fkaauTz0Oo6C8gbyXSntElHHGO4UlsIdQdCaWd60uIztnfCpjZYzlhsfgfPjB y5179Puc6tCXXAdUmGltwNP2ThQeEL+hVb1jUp19b4qSDtnjcOw9bdS++yNFiRp8eGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389151; 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=6V64T76gHsEeelaPFP21IF7355XVIHjYRCH9F5nYQ8U=; b=D5LOlIw+NG3jJQ3DZM5uK1yFK9geiJO2lRm1o0TGObdRuqqU/uK9x7Oxi7tIivsCLuZS /QgeU3YC3quYxcxVb+iBs2U3UThdTuxCh4k5hme+PHr48MEOF3sFDYSbIIoUNbvddYbzC O0cKTjD1tVH41thGz3h2YW5He4yFYCs/ttt6xLy4Q4oQlSumIdp+xYKWlVc9xfjSSfaLl rI6m4NUvzblcWOHRbMWtSbP7fmb08kmWewEApKUFUE9TM2CJS7IGzXtLYJ5Z5C93ObU5s lNpDjAw3DmaETZGSwl9bf0DQWLDcOfG8j9CKFh0kj+YbsgCBo4r6hKctitkl/y0CEtw== 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=wNma3cKI; 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 932D8606A322; Fri, 4 Dec 2026 12:59:11 +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=wNma3cKI Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEF551F000CE; Fri, 4 Dec 2026 12:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796389151; bh=6V64T76gHsEeelaPFP21IF7355XVIHjYRCH9F5nYQ8U=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=wNma3cKILbA9I1pWvGtsgk7FqADwznVFbJeQQf8LkmaxxNUQCk+RPGcxIJVVi0jXg nVV+X7/GWOP0p6aPAJSGT/VCw6v+0sr5wMx8OROvs0o1QzSnsDkSlokNqfdIe5Ha+F lmfcD1Ss5PfOuE01HJSuAHgPYmIIHufaogzpRHUY= 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.1 0846/1059] net/mlx5: E-Switch, skip vport change work for disabled vports Date: Fri, 4 Dec 2026 19:06:17 +0900 Message-ID: <20261204100705.945019812@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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 67cdf8cb48866..a2fa02ca6ceab 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c @@ -738,7 +738,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