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

Function mlx5_set_link_down

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

* DPDK callback to bring the link DOWN. * * @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

939 * 0 on success, a negative errno value otherwise and rte_errno is set.
940 */
941int
942mlx5_set_link_down(struct rte_eth_dev *dev)
943{
944 return mlx5_set_flags(dev, ~IFF_UP, ~IFF_UP);
945}
946
947/**
948 * DPDK callback to bring the link UP.

Callers

nothing calls this directly

Calls 1

mlx5_set_flagsFunction · 0.85

Tested by

no test coverage detected