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

Function igb_timesync_write_time

dpdk/drivers/net/e1000/igb_ethdev.c:4887–4901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4885}
4886
4887static int
4888igb_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts)
4889{
4890 uint64_t ns;
4891 struct e1000_adapter *adapter = dev->data->dev_private;
4892
4893 ns = rte_timespec_to_ns(ts);
4894
4895 /* Set the timecounters to a new value. */
4896 adapter->systime_tc.nsec = ns;
4897 adapter->rx_tstamp_tc.nsec = ns;
4898 adapter->tx_tstamp_tc.nsec = ns;
4899
4900 return 0;
4901}
4902
4903static int
4904igb_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