| 4560 | } |
| 4561 | |
| 4562 | static int |
| 4563 | txgbe_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 4564 | { |
| 4565 | uint64_t ns; |
| 4566 | struct txgbe_adapter *adapter = TXGBE_DEV_ADAPTER(dev); |
| 4567 | |
| 4568 | ns = rte_timespec_to_ns(ts); |
| 4569 | /* Set the timecounters to a new value. */ |
| 4570 | adapter->systime_tc.nsec = ns; |
| 4571 | adapter->rx_tstamp_tc.nsec = ns; |
| 4572 | adapter->tx_tstamp_tc.nsec = ns; |
| 4573 | |
| 4574 | return 0; |
| 4575 | } |
| 4576 | |
| 4577 | static int |
| 4578 | txgbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected