> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Sergey Temerkhanov > Sent: Wednesday, August 21, 2024 6:40 PM > To: [email protected] > Cc: Temerkhanov, Sergey <[email protected]>; > [email protected]; Simon Horman <[email protected]>; Kitszel, Przemyslaw > <[email protected]> > Subject: [Intel-wired-lan] [PATCH iwl-next v6 4/5] ice: Use ice_adapter for > PTP shared data instead of auxdev > > Use struct ice_adapter to hold shared PTP data and control PTP related > actions instead of auxbus. This allows significant code simplification and > faster access to the container fields used in the PTP support code. > > Move the PTP port list to the ice_adapter container to simplify the code and > avoid race conditions which could occur due to the synchronous nature of the > initialization/access and certain memory saving can be achieved by moving PTP > data into the ice_adapter itself. > > Signed-off-by: Sergey Temerkhanov <[email protected]> > Reviewed-by: Przemek Kitszel <[email protected]> > Reviewed-by: Simon Horman <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice_adapter.c | 6 + > drivers/net/ethernet/intel/ice/ice_adapter.h | 17 +++ > drivers/net/ethernet/intel/ice/ice_ptp.c | 115 ++++++++++++------- > drivers/net/ethernet/intel/ice/ice_ptp.h | 5 +- > drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 5 + > 5 files changed, 105 insertions(+), 43 deletions(-) >
Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel)
