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

Function mvneta_dev_set_link_up

dpdk/drivers/net/mvneta/mvneta_ethdev.c:291–300  ·  view source on GitHub ↗

* DPDK callback to bring the link up. * * @param dev * Pointer to Ethernet device structure. * * @return * 0 on success, negative error value otherwise. */

Source from the content-addressed store, hash-verified

289 * 0 on success, negative error value otherwise.
290 */
291static int
292mvneta_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.

Callers 1

mvneta_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected