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

Function rte_eth_read_clock

dpdk/lib/ethdev/rte_ethdev.c:6357–6379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6355}
6356
6357int
6358rte_eth_read_clock(uint16_t port_id, uint64_t *clock)
6359{
6360 struct rte_eth_dev *dev;
6361 int ret;
6362
6363 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
6364 dev = &rte_eth_devices[port_id];
6365
6366 if (clock == NULL) {
6367 RTE_ETHDEV_LOG(ERR, "Cannot read ethdev port %u clock to NULL\n",
6368 port_id);
6369 return -EINVAL;
6370 }
6371
6372 if (*dev->dev_ops->read_clock == NULL)
6373 return -ENOTSUP;
6374 ret = eth_err(port_id, (*dev->dev_ops->read_clock)(dev, clock));
6375
6376 rte_eth_trace_read_clock(port_id, clock, ret);
6377
6378 return ret;
6379}
6380
6381int
6382rte_eth_dev_get_reg_info(uint16_t port_id, struct rte_dev_reg_info *info)

Callers 3

tx_only_beginFunction · 0.85
calc_latencyFunction · 0.85
port_initFunction · 0.85

Calls 1

eth_errFunction · 0.85

Tested by

no test coverage detected