.. index:: pair: group; Get timestamping capabilities .. _doxid-group__ethtool-ts__info: Get timestamping capabilities ============================= .. toctree:: :hidden: 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`` and ``HWTSTAMP_TX_OFF`` are supported. * Check whether **tx_types** field contains any additional flags. * Check whether **rx_filter** field tells that both ``HWTSTAMP_FILTER_NONE`` and ``HWTSTAMP_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 `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer `