| 271 | } |
| 272 | |
| 273 | static int |
| 274 | sfc_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, ¤t_link); |
| 283 | |
| 284 | ret = rte_eth_linkstatus_set(dev, ¤t_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 | |
| 292 | static int |
| 293 | sfc_dev_stop(struct rte_eth_dev *dev) |
nothing calls this directly
no test coverage detected