| 4885 | } |
| 4886 | |
| 4887 | static int |
| 4888 | igb_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 4889 | { |
| 4890 | uint64_t ns; |
| 4891 | struct e1000_adapter *adapter = dev->data->dev_private; |
| 4892 | |
| 4893 | ns = rte_timespec_to_ns(ts); |
| 4894 | |
| 4895 | /* Set the timecounters to a new value. */ |
| 4896 | adapter->systime_tc.nsec = ns; |
| 4897 | adapter->rx_tstamp_tc.nsec = ns; |
| 4898 | adapter->tx_tstamp_tc.nsec = ns; |
| 4899 | |
| 4900 | return 0; |
| 4901 | } |
| 4902 | |
| 4903 | static int |
| 4904 | igb_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected