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

Function rte_eth_linkstatus_get

dpdk/lib/ethdev/ethdev_driver.h:1676–1685  ·  view source on GitHub ↗

* @internal * Atomically get the link speed and status. * * @param dev * Pointer to struct rte_eth_dev. * @param link * link status value. */

Source from the content-addressed store, hash-verified

1674 * link status value.
1675 */
1676static inline void
1677rte_eth_linkstatus_get(const struct rte_eth_dev *dev,
1678 struct rte_eth_link *link)
1679{
1680 struct rte_eth_link curr_link;
1681
1682 curr_link.val64 = rte_atomic_load_explicit(&dev->data->dev_link.val64,
1683 rte_memory_order_seq_cst);
1684 rte_atomic_store_explicit(&link->val64, curr_link.val64, rte_memory_order_seq_cst);
1685}
1686
1687/**
1688 * @internal

Callers 15

rte_eth_link_getFunction · 0.85
rte_eth_link_get_nowaitFunction · 0.85
atl_dev_link_updateFunction · 0.85
eth_igb_interrupt_actionFunction · 0.85
eth_em_interrupt_actionFunction · 0.85
enic_vf_link_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected