This function gets called when the current port gets stopped. */
| 935 | /* This function gets called when the current port gets stopped. |
| 936 | */ |
| 937 | static int |
| 938 | tap_dev_stop(struct rte_eth_dev *dev) |
| 939 | { |
| 940 | struct pmd_internals *pmd = dev->data->dev_private; |
| 941 | int i; |
| 942 | |
| 943 | for (i = 0; i < dev->data->nb_tx_queues; i++) |
| 944 | dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; |
| 945 | for (i = 0; i < dev->data->nb_rx_queues; i++) |
| 946 | dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED; |
| 947 | |
| 948 | tap_intr_handle_set(dev, 0); |
| 949 | if (!pmd->persist) |
| 950 | tap_link_set_down(dev); |
| 951 | |
| 952 | return 0; |
| 953 | } |
| 954 | |
| 955 | static int |
| 956 | tap_dev_configure(struct rte_eth_dev *dev) |
nothing calls this directly
no test coverage detected