* Set device link down. */
| 2814 | * Set device link down. |
| 2815 | */ |
| 2816 | static int |
| 2817 | i40e_dev_set_link_down(struct rte_eth_dev *dev) |
| 2818 | { |
| 2819 | uint8_t speed = I40E_LINK_SPEED_UNKNOWN; |
| 2820 | uint8_t abilities = 0; |
| 2821 | struct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private); |
| 2822 | |
| 2823 | abilities = I40E_AQ_PHY_ENABLE_ATOMIC_LINK; |
| 2824 | return i40e_phy_conf_link(hw, abilities, speed, false); |
| 2825 | } |
| 2826 | |
| 2827 | static __rte_always_inline void |
| 2828 | update_link_reg(struct i40e_hw *hw, struct rte_eth_link *link) |
no test coverage detected