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

Function ngbe_timesync_write_time

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

Source from the content-addressed store, hash-verified

2949}
2950
2951static int
2952ngbe_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
2966static int
2967ngbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts)

Callers

nothing calls this directly

Calls 2

ngbe_dev_adapterFunction · 0.85
rte_timespec_to_nsFunction · 0.85

Tested by

no test coverage detected