| 493 | } |
| 494 | |
| 495 | int hn_vf_start(struct rte_eth_dev *dev) |
| 496 | { |
| 497 | struct hn_data *hv = dev->data->dev_private; |
| 498 | struct rte_eth_dev *vf_dev; |
| 499 | int ret = 0; |
| 500 | |
| 501 | rte_rwlock_read_lock(&hv->vf_lock); |
| 502 | vf_dev = hn_get_vf_dev(hv); |
| 503 | if (vf_dev) |
| 504 | ret = rte_eth_dev_start(vf_dev->data->port_id); |
| 505 | rte_rwlock_read_unlock(&hv->vf_lock); |
| 506 | return ret; |
| 507 | } |
| 508 | |
| 509 | int hn_vf_stop(struct rte_eth_dev *dev) |
| 510 | { |
no test coverage detected