diff options
author | np <np@FreeBSD.org> | 2013-07-04 19:15:41 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2013-07-04 19:15:41 +0000 |
commit | 0814087cf4af15756b580b413d0560ad205e35ee (patch) | |
tree | 5c934154551f6c6f1514a27ffd184557e1a579ea | |
parent | e9befff373a248b1bda99b8a03a3dfcefb519521 (diff) | |
download | FreeBSD-src-0814087cf4af15756b580b413d0560ad205e35ee.zip FreeBSD-src-0814087cf4af15756b580b413d0560ad205e35ee.tar.gz |
Ring the egress queue's doorbell as soon as there are 8 or more
descriptors ready to be processed.
MFC after: 1 day
-rw-r--r-- | sys/dev/cxgbe/t4_sge.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cxgbe/t4_sge.c b/sys/dev/cxgbe/t4_sge.c index 5f40f5c..89eee2d 100644 --- a/sys/dev/cxgbe/t4_sge.c +++ b/sys/dev/cxgbe/t4_sge.c @@ -1337,7 +1337,7 @@ t4_wrq_tx_locked(struct adapter *sc, struct sge_wrq *wrq, struct wrqe *wr) eq->pidx -= eq->cap; eq->pending += ndesc; - if (eq->pending > 16) + if (eq->pending >= 8) ring_eq_db(sc, eq); wrq->tx_wrs++; @@ -1508,8 +1508,8 @@ t4_eth_tx(struct ifnet *ifp, struct sge_txq *txq, struct mbuf *m) if (sgl.nsegs == 0) m_freem(m); doorbell: - if (eq->pending >= 64) - ring_eq_db(sc, eq); + if (eq->pending >= 8) + ring_eq_db(sc, eq); can_reclaim = reclaimable(eq); if (can_reclaim >= 32) |