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

Function ngbe_timesync_read_time

dpdk/drivers/net/ngbe/ngbe_ethdev.c:2966–2977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2964}
2965
2966static int
2967ngbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts)
2968{
2969 uint64_t ns, systime_cycles;
2970 struct ngbe_adapter *adapter = ngbe_dev_adapter(dev);
2971
2972 systime_cycles = ngbe_read_systime_cyclecounter(dev);
2973 ns = rte_timecounter_update(&adapter->systime_tc, systime_cycles);
2974 *ts = rte_ns_to_timespec(ns);
2975
2976 return 0;
2977}
2978
2979static int
2980ngbe_timesync_enable(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 4

ngbe_dev_adapterFunction · 0.85
rte_timecounter_updateFunction · 0.85
rte_ns_to_timespecFunction · 0.85

Tested by

no test coverage detected