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

Function ixgbe_timesync_read_time

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:7068–7079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7066}
7067
7068static int
7069ixgbe_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
7081static int
7082ixgbe_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