src/dpdk/drivers/net/hinic/hinic_pmd_ethdev.c
static void hinic_rx_queue_release(void *queue)
{
	struct hinic_rxq *rxq = queue;
	struct hinic_nic_dev *nic_dev;

	if (!rxq) {
		PMD_DRV_LOG(WARNING, "Rxq is null when release");
		return;
	}
	nic_dev = rxq->nic_dev;

	/* free rxq_pkt mbuf */
	hinic_free_all_rx_mbufs(rxq);

	/* free rxq_cqe, rxq_info */
	hinic_free_rx_resources(rxq);

	/* free root rq wq */
	hinic_destroy_rq(nic_dev->hwdev, rxq->q_id);

	nic_dev->rxqs[rxq->q_id] = NULL;

	/* free rxq */
	rte_free(rxq);
}
/**
 * DPDK callback to release the receive queue.
 *
 * @param queue
 *   Generic receive queue pointer.
 */
DPDK callback to release the receive queue.
@param queue
Generic receive queue pointer.
DPDK callback to release the receive queue . @param queue Generic receive queue pointer .
static void hinic_rx_queue_release(void *queue)
{
	struct hinic_rxq *rxq = queue;
	struct hinic_nic_dev *nic_dev;
	if (!rxq) {
		PMD_DRV_LOG(WARNING, "Rxq is null when release");
		return;
	}
	nic_dev = rxq->nic_dev;
	hinic_free_all_rx_mbufs(rxq);
	hinic_free_rx_resources(rxq);
	hinic_destroy_rq(nic_dev->hwdev, rxq->q_id);
	nic_dev->rxqs[rxq->q_id] = NULL;
	rte_free(rxq);
}
static void hinic_rx_queue_release ( void * queue ) { struct hinic_rxq * rxq = queue ; struct hinic_nic_dev * nic_dev ; if ( ! rxq ) { PMD_DRV_LOG ( WARNING , " " ) ; return ; } nic_dev = rxq -> nic_dev ; hinic_free_all_rx_mbufs ( rxq ) ; hinic_free_rx_resources ( rxq ) ; hinic_destroy_rq ( nic_dev -> hwdev , rxq -> q_id ) ; nic_dev -> rxqs [ rxq -> q_id ] = NULL ; rte_free ( rxq ) ; }
DPDK callback to release the receive queue.
DPDK callback to release the receive queue .
/* free rxq_pkt mbuf */ /* free rxq_cqe, rxq_info */ /* free root rq wq */ /* free rxq */