ice: Add ice_get_ctrl_ptp() wrapper to simplify the code
authorSergey Temerkhanov <sergey.temerkhanov@intel.com>
Wed, 21 Aug 2024 13:09:54 +0000 (15:09 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 1 Oct 2024 18:11:38 +0000 (11:11 -0700)
commit97ed20a01f5b96e8738b53f56ae84b06953a2853
treeeb6dbab566c95afde67c605eca87184157f6927c
parent5e0776451d89eefe66b19e010e48ece1cca07e58
ice: Add ice_get_ctrl_ptp() wrapper to simplify the code

Add ice_get_ctrl_ptp() wrapper to simplify the PTP support code
in the functions that do not use ctrl_pf directly.
Add the control PF pointer to struct ice_adapter
Rearrange fields in struct ice_adapter

Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adapter.h
drivers/net/ethernet/intel/ice/ice_ptp.c