ice: Fix debugfs with devlink reload
authorWojciech Drewek <wojciech.drewek@intel.com>
Mon, 5 Feb 2024 13:03:57 +0000 (14:03 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 12 Feb 2024 18:12:42 +0000 (10:12 -0800)
commit500d0df5b4b2394a06b949bab05f7ed0242b9858
tree20e0ee9af6e97a9fa7395fa4485ef2469e1f16fa
parent41cc4e53934c30f1cf7745c257154e538c78a1f5
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 <wojciech.drewek@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_debugfs.c
drivers/net/ethernet/intel/ice/ice_fwlog.c
drivers/net/ethernet/intel/ice/ice_main.c