* 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. */
| 297 | * 0 on success, negative errno value otherwise and rte_errno is set. |
| 298 | */ |
| 299 | int |
| 300 | mlx4_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. |
nothing calls this directly
no test coverage detected