diff options
| author | Wojciech Drewek <[email protected]> | 2024-02-05 13:03:57 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-02-12 18:12:42 +0000 |
| commit | 500d0df5b4b2394a06b949bab05f7ed0242b9858 (patch) | |
| tree | 20e0ee9af6e97a9fa7395fa4485ef2469e1f16fa /drivers/net/ethernet/intel/ice/ice_fwlog.c | |
| parent | ice: Remove and readd netdev during devlink reload (diff) | |
| download | kernel-500d0df5b4b2394a06b949bab05f7ed0242b9858.tar.gz kernel-500d0df5b4b2394a06b949bab05f7ed0242b9858.zip | |
ice: Fix debugfs with devlink reload
During devlink reload it is needed to remove debugfs entries
correlated with only one PF. ice_debugfs_exit() removes all
entries created by ice driver so we can't use it.
Introduce ice_debugfs_pf_deinit() in order to release PF's
debugfs entries. Move ice_debugfs_exit() call to ice_module_exit(),
it makes more sense since ice_debugfs_init() is called in
ice_module_init() and not in ice_probe().
Signed-off-by: Wojciech Drewek <[email protected]>
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
Reviewed-by: Brett Creeley <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_fwlog.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_fwlog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_fwlog.c b/drivers/net/ethernet/intel/ice/ice_fwlog.c index 92b5dac481cd..4fd15387a7e5 100644 --- a/drivers/net/ethernet/intel/ice/ice_fwlog.c +++ b/drivers/net/ethernet/intel/ice/ice_fwlog.c @@ -188,6 +188,8 @@ void ice_fwlog_deinit(struct ice_hw *hw) if (hw->bus.func) return; + ice_debugfs_pf_deinit(hw->back); + /* make sure FW logging is disabled to not put the FW in a weird state * for the next driver load */ |
