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

Function i40e_dev_set_link_down

dpdk/drivers/net/i40e/i40e_ethdev.c:2816–2825  ·  view source on GitHub ↗

* Set device link down. */

Source from the content-addressed store, hash-verified

2814 * Set device link down.
2815 */
2816static int
2817i40e_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
2827static __rte_always_inline void
2828update_link_reg(struct i40e_hw *hw, struct rte_eth_link *link)

Callers 1

i40e_dev_stopFunction · 0.85

Calls 1

i40e_phy_conf_linkFunction · 0.85

Tested by

no test coverage detected