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

Function ixgbe_timesync_write_time

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

Source from the content-addressed store, hash-verified

7051}
7052
7053static int
7054ixgbe_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts)
7055{
7056 uint64_t ns;
7057 struct ixgbe_adapter *adapter = dev->data->dev_private;
7058
7059 ns = rte_timespec_to_ns(ts);
7060 /* Set the timecounters to a new value. */
7061 adapter->systime_tc.nsec = ns;
7062 adapter->rx_tstamp_tc.nsec = ns;
7063 adapter->tx_tstamp_tc.nsec = ns;
7064
7065 return 0;
7066}
7067
7068static int
7069ixgbe_timesync_read_time(struct rte_eth_dev *dev, struct timespec *ts)

Callers

nothing calls this directly

Calls 1

rte_timespec_to_nsFunction · 0.85

Tested by

no test coverage detected