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

Function sfc_dev_set_link_up

dpdk/drivers/net/sfc/sfc_ethdev.c:308–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308static int
309sfc_dev_set_link_up(struct rte_eth_dev *dev)
310{
311 struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev);
312 int rc;
313
314 sfc_log_init(sa, "entry");
315
316 sfc_adapter_lock(sa);
317 rc = sfc_start(sa);
318 sfc_adapter_unlock(sa);
319
320 SFC_ASSERT(rc >= 0);
321 return -rc;
322}
323
324static int
325sfc_dev_set_link_down(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 2

sfc_adapter_by_eth_devFunction · 0.85
sfc_startFunction · 0.85

Tested by

no test coverage detected