MCPcopy Create free account
hub / github.com/F-Stack/f-stack / igb_timesync_read_time

Function igb_timesync_read_time

dpdk/drivers/net/e1000/igb_ethdev.c:4903–4914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4901}
4902
4903static int
4904igb_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
4916static int
4917igb_timesync_enable(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 3

rte_timecounter_updateFunction · 0.85
rte_ns_to_timespecFunction · 0.85

Tested by

no test coverage detected