[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240701071631.GE17134@kernel.org>
Date: Mon, 1 Jul 2024 08:16:31 +0100
From: Simon Horman <horms@...nel.org>
To: Sergey Temerkhanov <sergey.temerkhanov@...el.com>
Cc: intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
Przemek Kitszel <przemyslaw.kitszel@...el.com>
Subject: Re: [PATCH iwl-next v2 3/4] ice: Use ice_adapter for PTP shared data
instead of auxdev
On Wed, Jun 26, 2024 at 02:54:55PM +0200, Sergey Temerkhanov wrote:
> 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.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@...el.com>
> Signed-off-by: Sergey Temerkhanov <sergey.temerkhanov@...el.com>
The nit below notwithstanding, this looks good to me.
Reviewed-by: Simon Horman <horms@...nel.org>
...
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.h b/drivers/net/ethernet/intel/ice/ice_ptp.h
> index 1d87dd67284d..de73762e6f27 100644
> --- a/drivers/net/ethernet/intel/ice/ice_ptp.h
> +++ b/drivers/net/ethernet/intel/ice/ice_ptp.h
> @@ -170,6 +170,7 @@ struct ice_ptp_tx {
> * and determine when the port's PHY offset is valid.
> *
> * @list_member: list member structure of auxiliary device
> + * @list_node: list member structure
> * @tx: Tx timestamp tracking for this port
> * @aux_dev: auxiliary device associated with this port
> * @ov_work: delayed work task for tracking when PHY offset is valid
> @@ -180,6 +181,7 @@ struct ice_ptp_tx {
> */
> struct ice_ptp_port {
> struct list_head list_member;
> + struct list_head list_node;
> struct ice_ptp_tx tx;
> struct auxiliary_device aux_dev;
> struct kthread_delayed_work ov_work;
> @@ -205,6 +207,7 @@ enum ice_ptp_tx_interrupt {
> * @ports: list of porst handled by this port owner
> * @lock: protect access to ports list
> */
> +
> struct ice_ptp_port_owner {
> struct auxiliary_driver aux_driver;
> struct list_head ports;
nit: the change in the hunk above seems unnecessary.
...
Powered by blists - more mailing lists