| 108 | } |
| 109 | |
| 110 | int |
| 111 | rte_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 | |
| 124 | int |
| 125 | rte_ethtool_get_eeprom_len(uint16_t port_id) |
no test coverage detected