* DPDK callback to release the receive queue. * * @param dev * Pointer to Ethernet device structure. * @param qid * Receive queue index. */
| 970 | * Receive queue index. |
| 971 | */ |
| 972 | void |
| 973 | mvneta_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid) |
| 974 | { |
| 975 | struct mvneta_rxq *q = dev->data->rx_queues[qid]; |
| 976 | |
| 977 | if (!q) |
| 978 | return; |
| 979 | |
| 980 | /* If dev_stop was called already, mbufs are already |
| 981 | * returned to mempool and ppio is deinitialized. |
| 982 | * Skip this step. |
| 983 | */ |
| 984 | |
| 985 | if (q->priv->ppio) |
| 986 | mvneta_rx_queue_flush(q); |
| 987 | |
| 988 | rte_free(q); |
| 989 | } |
| 990 | |
| 991 | /** |
| 992 | * DPDK callback to get information about specific receive queue. |
no test coverage detected