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

Function ionic_dev_set_link_up

dpdk/drivers/net/ionic/ionic_ethdev.c:226–241  ·  view source on GitHub ↗

* Set device link up, enable tx. */

Source from the content-addressed store, hash-verified

224 * Set device link up, enable tx.
225 */
226static int
227ionic_dev_set_link_up(struct rte_eth_dev *eth_dev)
228{
229 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev);
230 int err;
231
232 IONIC_PRINT_CALL();
233
234 err = ionic_lif_start(lif);
235 if (err)
236 IONIC_PRINT(ERR, "Could not start lif to set link up");
237
238 ionic_dev_link_update(lif->eth_dev, 0);
239
240 return err;
241}
242
243/*
244 * Set device link down, disable tx.

Callers

nothing calls this directly

Calls 2

ionic_lif_startFunction · 0.85
ionic_dev_link_updateFunction · 0.85

Tested by

no test coverage detected