* 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. */
| 939 | * 0 on success, a negative errno value otherwise and rte_errno is set. |
| 940 | */ |
| 941 | int |
| 942 | mlx5_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. |
nothing calls this directly
no test coverage detected