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

Function tap_rx_queue_release

dpdk/drivers/net/tap/rte_eth_tap.c:1201–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201static void
1202tap_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
1203{
1204 struct rx_queue *rxq = dev->data->rx_queues[qid];
1205 struct pmd_process_private *process_private;
1206
1207 if (!rxq)
1208 return;
1209 process_private = rte_eth_devices[rxq->in_port].process_private;
1210 if (process_private->rxq_fds[rxq->queue_id] != -1) {
1211 close(process_private->rxq_fds[rxq->queue_id]);
1212 process_private->rxq_fds[rxq->queue_id] = -1;
1213 tap_rxq_pool_free(rxq->pool);
1214 rte_free(rxq->iovecs);
1215 rxq->pool = NULL;
1216 rxq->iovecs = NULL;
1217 }
1218}
1219
1220static void
1221tap_tx_queue_release(struct rte_eth_dev *dev, uint16_t qid)

Callers

nothing calls this directly

Calls 3

tap_rxq_pool_freeFunction · 0.85
rte_freeFunction · 0.85
closeFunction · 0.50

Tested by

no test coverage detected