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_ONandHWTSTAMP_TX_OFFare supported.Check whether tx_types field contains any additional flags.
Check whether rx_filter field tells that both
HWTSTAMP_FILTER_NONEandHWTSTAMP_FILTER_ALLare 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:  |