FreeBSD/sys/dev/qlxge/qls_os.c
/*
 * Release mbuf after it sent on the wire
 */
Release mbuf after it sent on the wire
Release mbuf after it sent on the wire
static void
qls_flush_tx_buf(qla_host_t *ha, qla_tx_buf_t *txb)
{
	QL_DPRINT2((ha->pci_dev, "%s: enter\n", __func__));
	if (txb->m_head) {
		bus_dmamap_unload(ha->tx_tag, txb->map);
		m_freem(txb->m_head);
		txb->m_head = NULL;
	}
	QL_DPRINT2((ha->pci_dev, "%s: exit\n", __func__));
}
static void qls_flush_tx_buf ( qla_host_t * ha , qla_tx_buf_t * txb ) { QL_DPRINT2 ( ( ha -> pci_dev , " \n " , __func__ ) ) ; if ( txb -> m_head ) { bus_dmamap_unload ( ha -> tx_tag , txb -> map ) ; m_freem ( txb -> m_head ) ; txb -> m_head = NULL ; } QL_DPRINT2 ( ( ha -> pci_dev , " \n " , __func__ ) ) ; }
Release mbuf after it sent on the wire
Release mbuf after it sent on the wire