]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mana: Move current_speed debugfs file to mana_init_port()
authorErni Sri Satya Vennela <ernis@linux.microsoft.com>
Wed, 8 Apr 2026 08:12:20 +0000 (01:12 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 18:22:54 +0000 (11:22 -0700)
commit3b7c7fc97aea7b4048001d12f45777201c74a17f
tree5b3cd85424eecf0553eced18dda7a76f7f81ff06
parentc116f07ab9d22bb6f355f3cf9e44c1e6a47fe559
net: mana: Move current_speed debugfs file to mana_init_port()

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 <ernis@linux.microsoft.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260408081224.302308-3-ernis@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microsoft/mana/mana_en.c