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

Function mlx5_set_link_up

dpdk/drivers/net/mlx5/linux/mlx5_ethdev_os.c:956–960  ·  view source on GitHub ↗

* DPDK callback to bring the link UP. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, a negative errno value otherwise and rte_errno is set. */

Source from the content-addressed store, hash-verified

954 * 0 on success, a negative errno value otherwise and rte_errno is set.
955 */
956int
957mlx5_set_link_up(struct rte_eth_dev *dev)
958{
959 return mlx5_set_flags(dev, ~IFF_UP, IFF_UP);
960}
961
962/**
963 * Check if mlx5 device was removed.

Callers 1

mlx5_dev_spawnFunction · 0.70

Calls 1

mlx5_set_flagsFunction · 0.85

Tested by

no test coverage detected