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.h | |
| 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.h')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice.h b/drivers/net/ethernet/intel/ice/ice.h index 118e84835720..365c03d1c462 100644 --- a/drivers/net/ethernet/intel/ice/ice.h +++ b/drivers/net/ethernet/intel/ice/ice.h @@ -896,6 +896,7 @@ static inline bool ice_is_adq_active(struct ice_pf *pf) } void ice_debugfs_fwlog_init(struct ice_pf *pf); +void ice_debugfs_pf_deinit(struct ice_pf *pf); void ice_debugfs_init(void); void ice_debugfs_exit(void); void ice_pf_fwlog_update_module(struct ice_pf *pf, int log_level, int module); |
