Commit 3ddf652
net: mana: Move current_speed debugfs file to mana_init_port()
[ Upstream commit 3b7c7fc ]
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: 75cabb4 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 90ebf3e commit 3ddf652
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
| 3041 | + | |
| 3042 | + | |
3041 | 3043 | | |
3042 | 3044 | | |
3043 | 3045 | | |
| |||
3310 | 3312 | | |
3311 | 3313 | | |
3312 | 3314 | | |
3313 | | - | |
3314 | | - | |
3315 | 3315 | | |
3316 | 3316 | | |
3317 | 3317 | | |
| |||
0 commit comments