* DPDK callback to bring the link down. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, negative error value otherwise. */
| 309 | * 0 on success, negative error value otherwise. |
| 310 | */ |
| 311 | static int |
| 312 | mvneta_dev_set_link_down(struct rte_eth_dev *dev) |
| 313 | { |
| 314 | struct mvneta_priv *priv = dev->data->dev_private; |
| 315 | |
| 316 | if (!priv->ppio) |
| 317 | return 0; |
| 318 | |
| 319 | return neta_ppio_disable(priv->ppio); |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * DPDK callback to start the device. |