| 10379 | } |
| 10380 | |
| 10381 | static int |
| 10382 | i40e_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 10383 | { |
| 10384 | uint64_t ns; |
| 10385 | struct i40e_adapter *adapter = dev->data->dev_private; |
| 10386 | |
| 10387 | ns = rte_timespec_to_ns(ts); |
| 10388 | |
| 10389 | /* Set the timecounters to a new value. */ |
| 10390 | adapter->systime_tc.nsec = ns; |
| 10391 | adapter->rx_tstamp_tc.nsec = ns; |
| 10392 | adapter->tx_tstamp_tc.nsec = ns; |
| 10393 | |
| 10394 | return 0; |
| 10395 | } |
| 10396 | |
| 10397 | static int |
| 10398 | i40e_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected