[RFC PATCH v2] ethdev: update read time API in PMD to enable crosstimestamp

Stephen Hemminger stephen at networkplumber.org
Wed Dec 24 18:18:07 CET 2025


On Wed, 24 Dec 2025 07:33:17 +0000
Soumyadeep Hore <soumyadeep.hore at intel.com> wrote:

> diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h
> index 1255cd6f2c..000598b380 100644
> --- a/lib/ethdev/ethdev_driver.h
> +++ b/lib/ethdev/ethdev_driver.h
> @@ -798,7 +798,7 @@ typedef int (*eth_timesync_adjust_freq)(struct rte_eth_dev *dev, int64_t);
>  
>  /** @internal Function used to get time from the device clock. */
>  typedef int (*eth_timesync_read_time)(struct rte_eth_dev *dev,
> -				      struct timespec *timestamp);
> +				      struct timespec *timestamp, uint8_t is_cross_ts_en)

Could be bool? Maybe a better variable name?

You should also have an example of where this will be called with true value.


More information about the dev mailing list