| 941 | } |
| 942 | |
| 943 | static void ena_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid) |
| 944 | { |
| 945 | struct ena_ring *ring = dev->data->tx_queues[qid]; |
| 946 | |
| 947 | /* Free ring resources */ |
| 948 | rte_free(ring->push_buf_intermediate_buf); |
| 949 | |
| 950 | rte_free(ring->tx_buffer_info); |
| 951 | |
| 952 | rte_free(ring->empty_tx_reqs); |
| 953 | |
| 954 | ring->empty_tx_reqs = NULL; |
| 955 | ring->tx_buffer_info = NULL; |
| 956 | ring->push_buf_intermediate_buf = NULL; |
| 957 | |
| 958 | ring->configured = 0; |
| 959 | |
| 960 | PMD_DRV_LOG(NOTICE, "Tx queue %d:%d released\n", |
| 961 | ring->port_id, ring->id); |
| 962 | } |
| 963 | |
| 964 | static void ena_rx_queue_release_bufs(struct ena_ring *ring) |
| 965 | { |
no test coverage detected