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

Function i40e_timesync_write_time

dpdk/drivers/net/i40e/i40e_ethdev.c:10381–10395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10379}
10380
10381static int
10382i40e_timesync_write_time(struct rte_eth_dev *dev, const struct timespec *ts)
10383{
10384 uint64_t ns;
10385 struct i40e_adapter *adapter = dev->data->dev_private;
10386
10387 ns = rte_timespec_to_ns(ts);
10388
10389 /* Set the timecounters to a new value. */
10390 adapter->systime_tc.nsec = ns;
10391 adapter->rx_tstamp_tc.nsec = ns;
10392 adapter->tx_tstamp_tc.nsec = ns;
10393
10394 return 0;
10395}
10396
10397static int
10398i40e_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