| 7066 | } |
| 7067 | |
| 7068 | static int |
| 7069 | ixgbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
| 7070 | { |
| 7071 | uint64_t ns, systime_cycles; |
| 7072 | struct ixgbe_adapter *adapter = dev->data->dev_private; |
| 7073 | |
| 7074 | systime_cycles = ixgbe_read_systime_cyclecounter(dev); |
| 7075 | ns = rte_timecounter_update(&adapter->systime_tc, systime_cycles); |
| 7076 | *ts = rte_ns_to_timespec(ns); |
| 7077 | |
| 7078 | return 0; |
| 7079 | } |
| 7080 | |
| 7081 | static int |
| 7082 | ixgbe_timesync_enable(struct rte_eth_dev *dev) |
nothing calls this directly
no test coverage detected