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

Function mlx5_rx_queue_release

dpdk/drivers/net/mlx5/mlx5_rxq.c:1061–1072  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1059 * Receive queue index.
1060 */
1061void
1062mlx5_rx_queue_release(struct rte_eth_dev *dev, uint16_t qid)
1063{
1064 struct mlx5_rxq_data *rxq = dev->data->rx_queues[qid];
1065
1066 if (rxq == NULL)
1067 return;
1068 if (!mlx5_rxq_releasable(dev, qid))
1069 rte_panic("port %u Rx queue %u is still used by a flow and"
1070 " cannot be removed\n", dev->data->port_id, qid);
1071 mlx5_rxq_release(dev, qid);
1072}
1073
1074/**
1075 * Allocate queue vector and fill epoll fd list for Rx interrupts.

Callers

nothing calls this directly

Calls 2

mlx5_rxq_releasableFunction · 0.85
mlx5_rxq_releaseFunction · 0.85

Tested by

no test coverage detected