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=1796383587; b=EwdkB0D98fPejaAaE0faeAebEk4iPI81wHSSZf7AOh5QJvgcfmoOZ3B5RXSXddIWZuRX 1428fba73C6B8KCVLRV0rEKXO6qZd4pnqUapVH+PFCHlchvO7VqCEq38k1hwr8LUDwav1 l/hnLrvolJM3KPtwgXzGKOHT65WjVazUr8ZYszAtEV5aujUY3P1NHRmF0ie6PR7uxZ+LL nEaPjch02PlYgGoD9pJgSpUJMM9P8FIPuGBkXk/dhRgeJ0xJJssiv9mqNUdRDwGljlUp8 Nb4ACGNkTFKWxuuenIoknJJjEL1g8QE+CJuIh06KyQVHWHaHsu/gws+CalFTFFRwPOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383587; 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=H/SXoMnNgbHLZD3LTa8DwnSG2AeM0alikWvZX2miDKI=; b=mfSaAMQdQoq5ulJl6pwtEm3Tf2sQpzF2M8DIvhW9f0mR/tMQ9wuu66hwDaZynoWAO89f 47/XodxokOFDhJRqOAe5C5F19tIJLOIdz1/xAUfs/+ZoRJqrpU46+//cstz73Mxr8leep NyTkPevOclcaG/pApnEM1tdDQwvQqUo5IHZZ/jFK1LXPraogGbJCuWLgTivLtHj4C+gto NdupYDif64LawVejLbEC0p6uzpVToL5XvvnQ2E7fXSWDPv3NuOJeYY1PrWodgwnKLfbeZ c8lbKLCHpohYO/EyHfgYtX4gDY/g421d13ayvIyetE5XjvaF3i8CN0fQz6xL54TBt0g== 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=f5YkE+aH; 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 724C9606A32F; Fri, 4 Dec 2026 11:26:27 +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=f5YkE+aH Received: by smtp.kernel.org (Postfix) with ESMTPSA id E41B51F00936; Fri, 4 Dec 2026 11:26:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383587; bh=H/SXoMnNgbHLZD3LTa8DwnSG2AeM0alikWvZX2miDKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=f5YkE+aHIXSyz1h3bn9Yz4pn5tbb/YOjUH2WDrhwkfvQVqFgK/J73YLsFx09zPFWO khQ4b7FCzIEbf7WS3tmFpE3k4l8jOfvCtC4Z06ZGxRRyIuvK0kpycDt/4obHeLBWqW 2iTPzQE6J1G3Gyk6zlApGtw6xEhm5f2wQ3SNcHa4= 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.12 235/555] net/mlx5: E-Switch, skip vport change work for disabled vports Date: Fri, 4 Dec 2026 19:04:38 +0900 Message-ID: <20261204100618.165410053@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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 985263fda8f59..84cdf3e468b2f 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