diff options
| author | Michal Swiatkowski <[email protected]> | 2025-08-12 04:23:25 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-09-11 19:09:32 +0000 |
| commit | daf82b61ba0996bb270eba65d7e284d4e5ecaa60 (patch) | |
| tree | cafd85cb8a1189bbbc0d349cb2fbb8c623cb9d70 /drivers/net/ethernet/intel/ice/ice_common.c | |
| parent | ice: drop ice_pf_fwlog_update_module() (diff) | |
| download | kernel-daf82b61ba0996bb270eba65d7e284d4e5ecaa60.tar.gz kernel-daf82b61ba0996bb270eba65d7e284d4e5ecaa60.zip | |
ice: introduce ice_fwlog structure
The new structure is needed to make the fwlog code a library. A goal is
to drop ice_hw structure in all fwlog related functions calls.
Pass a ice_fwlog pointer across fwlog functions and use it wherever it
is possible.
Still use &hw->fwlog in debugfs code as it needs changing the value
being passed in priv. It will be done in one of the next patches.
Reviewed-by: Przemek Kitszel <[email protected]>
Reviewed-by: Larysa Zaremba <[email protected]>
Signed-off-by: Michal Swiatkowski <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_common.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index 808870539667..7043cca525c6 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.c +++ b/drivers/net/ethernet/intel/ice/ice_common.c @@ -1012,7 +1012,7 @@ int ice_init_hw(struct ice_hw *hw) if (status) goto err_unroll_cqinit; - status = ice_fwlog_init(hw); + status = ice_fwlog_init(hw, &hw->fwlog); if (status) ice_debug(hw, ICE_DBG_FW_LOG, "Error initializing FW logging: %d\n", status); @@ -1178,7 +1178,7 @@ void ice_deinit_hw(struct ice_hw *hw) ice_free_hw_tbls(hw); mutex_destroy(&hw->tnl_lock); - ice_fwlog_deinit(hw); + ice_fwlog_deinit(hw, &hw->fwlog); ice_destroy_all_ctrlq(hw); /* Clear VSI contexts if not already cleared */ |
