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

Function eth_dev_to_id

dpdk/lib/ethdev/ethdev_private.c:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18rte_spinlock_t eth_dev_cb_lock = RTE_SPINLOCK_INITIALIZER;
19
20uint16_t
21eth_dev_to_id(const struct rte_eth_dev *dev)
22{
23 if (dev == NULL)
24 return RTE_MAX_ETHPORTS;
25 return dev - rte_eth_devices;
26}
27
28struct rte_eth_dev *
29eth_find_device(const struct rte_eth_dev *start, rte_eth_cmp_t cmp,

Callers 2

rte_eth_iterator_nextFunction · 0.85
eth_find_deviceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected