Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/netmap/if_em_netmap.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
em_netmap_unblock_tasks(struct adapter *adapter) | em_netmap_unblock_tasks(struct adapter *adapter) | ||||
{ | { | ||||
if (adapter->msix > 1) { | if (adapter->msix > 1) { | ||||
struct tx_ring *txr = adapter->tx_rings; | struct tx_ring *txr = adapter->tx_rings; | ||||
struct rx_ring *rxr = adapter->rx_rings; | struct rx_ring *rxr = adapter->rx_rings; | ||||
int i; | int i; | ||||
for (i = 0; i < adapter->num_queues; i++) { | for (i = 0; i < adapter->num_queues; i++, txr++, rxr++) { | ||||
taskqueue_unblock(txr->tq); | taskqueue_unblock(txr->tq); | ||||
taskqueue_unblock(rxr->tq); | taskqueue_unblock(rxr->tq); | ||||
} | } | ||||
} else { /* legacy */ | } else { /* legacy */ | ||||
taskqueue_unblock(adapter->tq); | taskqueue_unblock(adapter->tq); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |