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

Function mlx4_dev_set_link_down

dpdk/drivers/net/mlx4/mlx4_ethdev.c:299–305  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

297 * 0 on success, negative errno value otherwise and rte_errno is set.
298 */
299int
300mlx4_dev_set_link_down(struct rte_eth_dev *dev)
301{
302 struct mlx4_priv *priv = dev->data->dev_private;
303
304 return mlx4_dev_set_link(priv, 0);
305}
306
307/**
308 * DPDK callback to bring the link UP.

Callers

nothing calls this directly

Calls 1

mlx4_dev_set_linkFunction · 0.85

Tested by

no test coverage detected