* DPDK callback to bring the link up. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, negative error value otherwise. */
| 289 | * 0 on success, negative error value otherwise. |
| 290 | */ |
| 291 | static int |
| 292 | mvneta_dev_set_link_up(struct rte_eth_dev *dev) |
| 293 | { |
| 294 | struct mvneta_priv *priv = dev->data->dev_private; |
| 295 | |
| 296 | if (!priv->ppio) |
| 297 | return 0; |
| 298 | |
| 299 | return neta_ppio_enable(priv->ppio); |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * DPDK callback to bring the link down. |