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

Function rte_ethtool_get_link

dpdk/examples/ethtool/lib/rte_ethtool.c:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110int
111rte_ethtool_get_link(uint16_t port_id)
112{
113 struct rte_eth_link link;
114 int ret;
115
116 RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV);
117 ret = rte_eth_link_get(port_id, &link);
118 if (ret < 0)
119 return ret;
120
121 return link.link_status;
122}
123
124int
125rte_ethtool_get_eeprom_len(uint16_t port_id)

Callers 1

pcmd_link_callbackFunction · 0.85

Calls 1

rte_eth_link_getFunction · 0.85

Tested by

no test coverage detected