From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 080DC36A34D; Wed, 20 May 2026 16:34:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779294841; cv=none; b=Z7DtmA3EbUS9B4PzZ+bSr0e+PFHZgeQcYIjyroblmN+v5dGO0ExMIlYqLC68iQSdNkYysdjEKugBtbV//4PwAiApX7pCDvWiN1aMiZIn+HpwYTu3QpIKiNWKq7AqnmP3gam1SYxJKi48Xux9nWASLB5IbM2YUG3v27DR9krnyao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779294841; c=relaxed/simple; bh=5eErl1pu8jwxF6LuezxmGsrWosDxi1/v5RJHGAR3Yoc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I6pF85qs7YUa5hHccdVPe/0VMEMKUljhiER0z6BmnJiQ/TYIhefmRmQMB+8aepamk8mZH/uYG4sii21NOiJRhnXPSA7oDomfTHDdwSSn2isNT4egadA42EzLcZLtopBIUvHBkFteTrsy1E6PUzi9LKUu8jIUI2L1m3amXjiuDpg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TK2g2Zuy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="TK2g2Zuy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B1611F000E9; Wed, 20 May 2026 16:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779294839; bh=yhYynhroLWjiEdqmNHp1EShY1z3wVXr3U0M8tPVn8sU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TK2g2ZuyEbNP8jjeMm+BnOu7JnI54Cus+47MAHFz+KTCK2vYBab34DFJ41Uok6RuZ PkeLs/YGG/M1bCd8W86CWeTluAOuk+DT2y3CzlvI5/Ujw0JSgs0UbQbpyzkFbXhYtL 2SqhFUbadnsBiRQQlQUtZroP2nPQ7/9hniPJfvDs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Erni Sri Satya Vennela , Simon Horman , Jakub Kicinski , Sasha Levin Subject: [PATCH 7.0 0192/1146] net: mana: Move current_speed debugfs file to mana_init_port() Date: Wed, 20 May 2026 18:07:22 +0200 Message-ID: <20260520162152.622006814@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Erni Sri Satya Vennela [ Upstream commit 3b7c7fc97aea7b4048001d12f45777201c74a17f ] Move the current_speed debugfs file creation from mana_probe_port() to mana_init_port(). The file was previously created only during initial probe, but mana_cleanup_port_context() removes the entire vPort debugfs directory during detach/attach cycles. Since mana_init_port() recreates the directory on re-attach, moving current_speed here ensures it survives these cycles. Fixes: 75cabb46935b ("net: mana: Add support for net_shaper_ops") Signed-off-by: Erni Sri Satya Vennela Reviewed-by: Simon Horman Link: https://patch.msgid.link/20260408081224.302308-3-ernis@linux.microsoft.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/microsoft/mana/mana_en.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c index 6d87533924fa8..2ff19e1938f49 100644 --- a/drivers/net/ethernet/microsoft/mana/mana_en.c +++ b/drivers/net/ethernet/microsoft/mana/mana_en.c @@ -3124,6 +3124,8 @@ static int mana_init_port(struct net_device *ndev) eth_hw_addr_set(ndev, apc->mac_addr); sprintf(vport, "vport%d", port_idx); apc->mana_port_debugfs = debugfs_create_dir(vport, gc->mana_pci_debugfs); + debugfs_create_u32("current_speed", 0400, apc->mana_port_debugfs, + &apc->speed); return 0; reset_apc: @@ -3402,8 +3404,6 @@ static int mana_probe_port(struct mana_context *ac, int port_idx, netif_carrier_on(ndev); - debugfs_create_u32("current_speed", 0400, apc->mana_port_debugfs, &apc->speed); - return 0; free_indir: -- 2.53.0