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

Function txgbe_timesync_write_time

dpdk/drivers/net/txgbe/txgbe_ethdev.c:4562–4575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4560}
4561
4562static int
4563txgbe_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts)
4564{
4565 uint64_t ns;
4566 struct txgbe_adapter *adapter = TXGBE_DEV_ADAPTER(dev);
4567
4568 ns = rte_timespec_to_ns(ts);
4569 /* Set the timecounters to a new value. */
4570 adapter->systime_tc.nsec = ns;
4571 adapter->rx_tstamp_tc.nsec = ns;
4572 adapter->tx_tstamp_tc.nsec = ns;
4573
4574 return 0;
4575}
4576
4577static int
4578txgbe_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