| 7051 | } |
| 7052 | |
| 7053 | static int |
| 7054 | ixgbe_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 7055 | { |
| 7056 | uint64_t ns; |
| 7057 | struct ixgbe_adapter *adapter = dev->data->dev_private; |
| 7058 | |
| 7059 | ns = rte_timespec_to_ns(ts); |
| 7060 | /* Set the timecounters to a new value. */ |
| 7061 | adapter->systime_tc.nsec = ns; |
| 7062 | adapter->rx_tstamp_tc.nsec = ns; |
| 7063 | adapter->tx_tstamp_tc.nsec = ns; |
| 7064 | |
| 7065 | return 0; |
| 7066 | } |
| 7067 | |
| 7068 | static int |
| 7069 | ixgbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected