Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/ixl_txrx.c
Show First 20 Lines • Show All 807 Lines • ▼ Show 20 Lines | |||||
bool | bool | ||||
ixl_txeof(struct ixl_queue *que) | ixl_txeof(struct ixl_queue *que) | ||||
{ | { | ||||
struct tx_ring *txr = &que->txr; | struct tx_ring *txr = &que->txr; | ||||
u32 first, last, head, done, processed; | u32 first, last, head, done, processed; | ||||
struct ixl_tx_buf *buf; | struct ixl_tx_buf *buf; | ||||
struct i40e_tx_desc *tx_desc, *eop_desc; | struct i40e_tx_desc *tx_desc, *eop_desc; | ||||
mtx_assert(&txr->mtx, MA_OWNED); | mtx_assert(&txr->mtx, MA_OWNED); | ||||
/* These are not the descriptors you seek, move along :) */ | /* These are not the descriptors you seek, move along :) */ | ||||
if (txr->avail == que->num_desc) { | if (txr->avail == que->num_desc) { | ||||
que->busy = 0; | que->busy = 0; | ||||
return FALSE; | return FALSE; | ||||
} | } | ||||
processed = 0; | processed = 0; | ||||
▲ Show 20 Lines • Show All 930 Lines • Show Last 20 Lines |