| 4901 | } |
| 4902 | |
| 4903 | static int |
| 4904 | igb_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
| 4905 | { |
| 4906 | uint64_t ns, systime_cycles; |
| 4907 | struct e1000_adapter *adapter = dev->data->dev_private; |
| 4908 | |
| 4909 | systime_cycles = igb_read_systime_cyclecounter(dev); |
| 4910 | ns = rte_timecounter_update(&adapter->systime_tc, systime_cycles); |
| 4911 | *ts = rte_ns_to_timespec(ns); |
| 4912 | |
| 4913 | return 0; |
| 4914 | } |
| 4915 | |
| 4916 | static int |
| 4917 | igb_timesync_enable(struct rte_eth_dev *dev) |
nothing calls this directly
no test coverage detected