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

Function sfc_dev_link_update

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

Source from the content-addressed store, hash-verified

271}
272
273static int
274sfc_dev_link_update(struct rte_eth_dev *dev, int wait_to_complete)
275{
276 struct sfc_adapter *sa = sfc_adapter_by_eth_dev(dev);
277 struct rte_eth_link current_link;
278 int ret;
279
280 sfc_log_init(sa, "entry");
281
282 sfc_dev_get_rte_link(dev, wait_to_complete, &current_link);
283
284 ret = rte_eth_linkstatus_set(dev, &current_link);
285 if (ret == 0)
286 sfc_notice(sa, "Link status is %s",
287 current_link.link_status ? "UP" : "DOWN");
288
289 return ret;
290}
291
292static int
293sfc_dev_stop(struct rte_eth_dev *dev)

Callers

nothing calls this directly

Calls 3

sfc_adapter_by_eth_devFunction · 0.85
sfc_dev_get_rte_linkFunction · 0.85
rte_eth_linkstatus_setFunction · 0.85

Tested by

no test coverage detected