Get timestamping capabilities
Check that ethtool provides information about packets timestamping capabilities and PHC device index.
Scenarios: X3-PTP013.
Call ioctl (
SIOCETHTOOL
/ETHTOOL_GET_TS_INFO
) for the IUT interface.Check the values set in ethtool_ts_info structure fields after ioctl() call:
Check whether PHC device index is specified in phc_index field.
Check whether tx_types field tells that both
HWTSTAMP_TX_ON
andHWTSTAMP_TX_OFF
are supported.Check whether tx_types field contains any additional flags.
Check whether rx_filter field tells that both
HWTSTAMP_FILTER_NONE
andHWTSTAMP_FILTER_ALL
are supported.Check whether rx_filter field contains any additional flags.
Check whether so_timestamping field contains flags for hardware timestamping capabilities.
Check whether so_timestamping field contains flags for software timestamping capabilities.
Check whether so_timestamping field contains any additional flags.
Yurij Plotnikov Yurij.Plotnikov@arknetworks.am
Parameters:
env |
Testing environment: |