src/dpdk/drivers/net/hinic/hinic_pmd_ethdev.c
static void hinic_tx_queue_release(void *queue)
{
	struct hinic_txq *txq = queue;
	struct hinic_nic_dev *nic_dev;

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

	/* free txq_pkt mbuf */
	hinic_free_all_tx_mbufs(txq);

	/* free txq_info */
	hinic_free_tx_resources(txq);

	/* free root sq wq */
	hinic_destroy_sq(nic_dev->hwdev, txq->q_id);
	nic_dev->txqs[txq->q_id] = NULL;

	/* free txq */
	rte_free(txq);
}
/**
 * DPDK callback to release the transmit queue.
 *
 * @param queue
 *   Generic transmit queue pointer.
 */
DPDK callback to release the transmit queue.
@param queue
Generic transmit queue pointer.
DPDK callback to release the transmit queue . @param queue Generic transmit queue pointer .
static void hinic_tx_queue_release(void *queue)
{
	struct hinic_txq *txq = queue;
	struct hinic_nic_dev *nic_dev;
	if (!txq) {
		PMD_DRV_LOG(WARNING, "Txq is null when release");
		return;
	}
	nic_dev = txq->nic_dev;
	hinic_free_all_tx_mbufs(txq);
	hinic_free_tx_resources(txq);
	hinic_destroy_sq(nic_dev->hwdev, txq->q_id);
	nic_dev->txqs[txq->q_id] = NULL;
	rte_free(txq);
}
static void hinic_tx_queue_release ( void * queue ) { struct hinic_txq * txq = queue ; struct hinic_nic_dev * nic_dev ; if ( ! txq ) { PMD_DRV_LOG ( WARNING , " " ) ; return ; } nic_dev = txq -> nic_dev ; hinic_free_all_tx_mbufs ( txq ) ; hinic_free_tx_resources ( txq ) ; hinic_destroy_sq ( nic_dev -> hwdev , txq -> q_id ) ; nic_dev -> txqs [ txq -> q_id ] = NULL ; rte_free ( txq ) ; }
DPDK callback to release the transmit queue.
DPDK callback to release the transmit queue .
/* free txq_pkt mbuf */ /* free txq_info */ /* free root sq wq */ /* free txq */