Commit c4c24fc
net/mlx5e: Move Ethernet driver debugfs to profile init callback
As priv->dfs_root is cleared, and therefore missed, when change
eswitch mode, move the creation of the root debugfs to the init
callback of mlx5e_nic_profile and mlx5e_uplink_rep_profile, and
the destruction to the cleanup callback for symmeter.
Fixes: 288eca6 ("net/mlx5e: Add Ethernet driver debugfs")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>1 parent bdf2747 commit c4c24fc
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5261 | 5261 | | |
5262 | 5262 | | |
5263 | 5263 | | |
| 5264 | + | |
| 5265 | + | |
| 5266 | + | |
5264 | 5267 | | |
5265 | 5268 | | |
5266 | 5269 | | |
5267 | 5270 | | |
5268 | 5271 | | |
5269 | 5272 | | |
| 5273 | + | |
5270 | 5274 | | |
5271 | 5275 | | |
5272 | 5276 | | |
| |||
5287 | 5291 | | |
5288 | 5292 | | |
5289 | 5293 | | |
| 5294 | + | |
5290 | 5295 | | |
5291 | 5296 | | |
5292 | 5297 | | |
| |||
6011 | 6016 | | |
6012 | 6017 | | |
6013 | 6018 | | |
6014 | | - | |
6015 | | - | |
6016 | | - | |
6017 | 6019 | | |
6018 | 6020 | | |
6019 | 6021 | | |
| |||
6042 | 6044 | | |
6043 | 6045 | | |
6044 | 6046 | | |
6045 | | - | |
6046 | 6047 | | |
6047 | 6048 | | |
6048 | 6049 | | |
| |||
6062 | 6063 | | |
6063 | 6064 | | |
6064 | 6065 | | |
6065 | | - | |
6066 | 6066 | | |
6067 | 6067 | | |
6068 | 6068 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
812 | 813 | | |
813 | 814 | | |
814 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
815 | 819 | | |
816 | 820 | | |
817 | 821 | | |
818 | 822 | | |
819 | 823 | | |
| 824 | + | |
820 | 825 | | |
821 | 826 | | |
822 | 827 | | |
| |||
829 | 834 | | |
830 | 835 | | |
831 | 836 | | |
| 837 | + | |
832 | 838 | | |
833 | 839 | | |
834 | 840 | | |
| |||
0 commit comments