| 341 | } |
| 342 | |
| 343 | static int |
| 344 | sfc_repr_dev_stop(struct rte_eth_dev *dev) |
| 345 | { |
| 346 | struct sfc_repr *sr = sfc_repr_by_eth_dev(dev); |
| 347 | uint16_t i; |
| 348 | int ret; |
| 349 | |
| 350 | sfcr_info(sr, "entry"); |
| 351 | |
| 352 | sfc_repr_lock(sr); |
| 353 | |
| 354 | ret = sfc_repr_stop(dev); |
| 355 | if (ret != 0) { |
| 356 | sfcr_err(sr, "%s() failed to stop representor", __func__); |
| 357 | goto fail_stop; |
| 358 | } |
| 359 | |
| 360 | sfc_repr_unlock(sr); |
| 361 | |
| 362 | for (i = 0; i < dev->data->nb_rx_queues; i++) |
| 363 | dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; |
| 364 | for (i = 0; i < dev->data->nb_tx_queues; i++) |
| 365 | dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; |
| 366 | |
| 367 | sfcr_info(sr, "done"); |
| 368 | |
| 369 | return 0; |
| 370 | |
| 371 | fail_stop: |
| 372 | sfc_repr_unlock(sr); |
| 373 | |
| 374 | sfcr_err(sr, "%s() failed %s", __func__, rte_strerror(-ret)); |
| 375 | |
| 376 | return ret; |
| 377 | } |
| 378 | |
| 379 | static int |
| 380 | sfc_repr_check_conf(struct sfc_repr *sr, uint16_t nb_rx_queues, |
nothing calls this directly
no test coverage detected