diff options
author | kmacy <kmacy@FreeBSD.org> | 2007-07-17 06:12:22 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2007-07-17 06:12:22 +0000 |
commit | 2d80191535ea4f0e6ebd0ab985542b868dec5405 (patch) | |
tree | 78a24952a4b52e56efe7e66f8d849185b9cc9a32 /sys/dev/cxgb/cxgb_sge.c | |
parent | a682b8e2c4ebb4fde4dc91189d0ca63893f90a68 (diff) | |
download | FreeBSD-src-2d80191535ea4f0e6ebd0ab985542b868dec5405.zip FreeBSD-src-2d80191535ea4f0e6ebd0ab985542b868dec5405.tar.gz |
- Increase descriptors per call to start
- enqueue per-txq task
- fix per-txq task initialization
Approved by: re (blanket)
Diffstat (limited to 'sys/dev/cxgb/cxgb_sge.c')
-rw-r--r-- | sys/dev/cxgb/cxgb_sge.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/cxgb/cxgb_sge.c b/sys/dev/cxgb/cxgb_sge.c index 48dbe45..cf7a981 100644 --- a/sys/dev/cxgb/cxgb_sge.c +++ b/sys/dev/cxgb/cxgb_sge.c @@ -2040,8 +2040,8 @@ t3_sge_alloc_qset(adapter_t *sc, u_int id, int nports, int irq_vec_idx, TASK_INIT(&q->txq[TXQ_OFLD].qresume_task, 0, restart_offloadq, q); TASK_INIT(&q->txq[TXQ_CTRL].qresume_task, 0, restart_ctrlq, q); - TASK_INIT(&q->txq[TXQ_OFLD].qreclaim_task, 0, sge_txq_reclaim_handler, &q->txq[TXQ_ETH]); - TASK_INIT(&q->txq[TXQ_CTRL].qreclaim_task, 0, sge_txq_reclaim_handler, &q->txq[TXQ_OFLD]); + TASK_INIT(&q->txq[TXQ_ETH].qreclaim_task, 0, sge_txq_reclaim_handler, &q->txq[TXQ_ETH]); + TASK_INIT(&q->txq[TXQ_OFLD].qreclaim_task, 0, sge_txq_reclaim_handler, &q->txq[TXQ_OFLD]); @@ -2418,12 +2418,9 @@ process_responses(adapter_t *adap, struct sge_qset *qs, int budget) ngathered = rx_offload(&adap->tdev, rspq, rspq->m, offload_mbufs, ngathered); } -#ifdef notyet - taskqueue_enqueue(adap->tq, &adap->timer_reclaim_task); -#else __refill_fl(adap, &qs->fl[0]); __refill_fl(adap, &qs->fl[1]); -#endif + } --budget_left; } |