[Intel-wired-lan] [PATCH iwl-next v12 13/14] iavf: handle set and get timestamps ops
Romanowski, Rafal
rafal.romanowski at intel.com
Mon Nov 4 11:05:33 UTC 2024
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Mateusz Polchlopek
> Sent: Tuesday, October 22, 2024 1:41 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: netdev at vger.kernel.org; Keller, Jacob E <jacob.e.keller at intel.com>; Drewek,
> Wojciech <wojciech.drewek at intel.com>; Rahul Rameshbabu
> <rrameshbabu at nvidia.com>; Simon Horman <horms at kernel.org>; Lobakin,
> Aleksander <aleksander.lobakin at intel.com>; Polchlopek, Mateusz
> <mateusz.polchlopek at intel.com>
> Subject: [Intel-wired-lan] [PATCH iwl-next v12 13/14] iavf: handle set and get
> timestamps ops
>
> From: Jacob Keller <jacob.e.keller at intel.com>
>
> Add handlers for the .ndo_hwtstamp_get and .ndo_hwtstamp_set ops which
> allow userspace to request timestamp enablement for the device. This support
> allows standard Linux applications to request the timestamping desired.
>
> As with other devices that support timestamping all packets, the driver will
> upgrade any request for timestamping of a specific type of packet to
> HWTSTAMP_FILTER_ALL.
>
> The current configuration is stored, so that it can be retrieved by calling
> .ndo_hwtstamp_get
>
> The Tx timestamps are not implemented yet so calling set ops for Tx path will end
> with EOPNOTSUPP error code.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Reviewed-by: Wojciech Drewek <wojciech.drewek at intel.com>
> Reviewed-by: Rahul Rameshbabu <rrameshbabu at nvidia.com>
> Reviewed-by: Simon Horman <horms at kernel.org>
> Reviewed-by: Alexander Lobakin <aleksander.lobakin at intel.com>
> Co-developed-by: Mateusz Polchlopek <mateusz.polchlopek at intel.com>
> Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek at intel.com>
> ---
> drivers/net/ethernet/intel/iavf/iavf_main.c | 21 ++++
> drivers/net/ethernet/intel/iavf/iavf_ptp.c | 100 ++++++++++++++++++++
> drivers/net/ethernet/intel/iavf/iavf_ptp.h | 9 ++
> drivers/net/ethernet/intel/iavf/iavf_txrx.h | 1 +
> 4 files changed, 131 insertions(+)
>
> diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c
> b/drivers/net/ethernet/intel/iavf/iavf_main.c
> index b897dd94a32e..1103c210b4e3 100644
> --- a/drivers/net/ethernet/intel/iavf/iavf_main.c
> +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
> @@ -5137,6 +5137,25 @@ static netdev_features_t iavf_fix_features(struct
Tested-by: Rafal Romanowski <rafal.romanowski at intel.com>
More information about the Intel-wired-lan
mailing list