* @internal * Atomically get the link speed and status. * * @param dev * Pointer to struct rte_eth_dev. * @param link * link status value. */
| 1674 | * link status value. |
| 1675 | */ |
| 1676 | static inline void |
| 1677 | rte_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 |
no outgoing calls
no test coverage detected