MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mvneta_rx_queue_release

Function mvneta_rx_queue_release

dpdk/drivers/net/mvneta/mvneta_rxtx.c:972–989  ·  view source on GitHub ↗

* DPDK callback to release the receive queue. * * @param dev * Pointer to Ethernet device structure. * @param qid * Receive queue index. */

Source from the content-addressed store, hash-verified

970 * Receive queue index.
971 */
972void
973mvneta_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.

Callers 1

mvneta_dev_closeFunction · 0.85

Calls 2

mvneta_rx_queue_flushFunction · 0.85
rte_freeFunction · 0.85

Tested by

no test coverage detected