| 2949 | } |
| 2950 | |
| 2951 | static int |
| 2952 | ngbe_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts) |
| 2953 | { |
| 2954 | uint64_t ns; |
| 2955 | struct ngbe_adapter *adapter = ngbe_dev_adapter(dev); |
| 2956 | |
| 2957 | ns = rte_timespec_to_ns(ts); |
| 2958 | /* Set the timecounters to a new value. */ |
| 2959 | adapter->systime_tc.nsec = ns; |
| 2960 | adapter->rx_tstamp_tc.nsec = ns; |
| 2961 | adapter->tx_tstamp_tc.nsec = ns; |
| 2962 | |
| 2963 | return 0; |
| 2964 | } |
| 2965 | |
| 2966 | static int |
| 2967 | ngbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected