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

Function mvneta_dev_set_link_down

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

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

Source from the content-addressed store, hash-verified

309 * 0 on success, negative error value otherwise.
310 */
311static int
312mvneta_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.

Callers 1

mvneta_dev_stopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected