Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_ixl.c
Show First 20 Lines • Show All 1,247 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
ixl_if_queues_free(if_ctx_t ctx) | ixl_if_queues_free(if_ctx_t ctx) | ||||
{ | { | ||||
struct ixl_pf *pf = iflib_get_softc(ctx); | struct ixl_pf *pf = iflib_get_softc(ctx); | ||||
struct ixl_vsi *vsi = &pf->vsi; | struct ixl_vsi *vsi = &pf->vsi; | ||||
if (!vsi->enable_head_writeback) { | if (vsi->tx_queues != NULL && !vsi->enable_head_writeback) { | ||||
struct ixl_tx_queue *que; | struct ixl_tx_queue *que; | ||||
int i = 0; | int i = 0; | ||||
for (i = 0, que = vsi->tx_queues; i < vsi->num_tx_queues; i++, que++) { | for (i = 0, que = vsi->tx_queues; i < vsi->num_tx_queues; i++, que++) { | ||||
struct tx_ring *txr = &que->txr; | struct tx_ring *txr = &que->txr; | ||||
if (txr->tx_rsq != NULL) { | if (txr->tx_rsq != NULL) { | ||||
free(txr->tx_rsq, M_IXL); | free(txr->tx_rsq, M_IXL); | ||||
txr->tx_rsq = NULL; | txr->tx_rsq = NULL; | ||||
▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines |